You are not logged in.
I need a program or script that checks if a string could be a valid URL and then exits with either a zero or non-zero status based on what it finds (for use in a pipeline). It should also handle "sloppy" URLs with no http included, etc. I know there's probably a simple tool I'm not recalling, or an easy perl solution. Help?
Offline
Offline
Thanks. I was really having a huge brain fart. I realized that grep is exactly what I was looking for (doh!), so I just googled for a good URL regex.
Offline