Thanks Fairlight2cx,
The logic is such that we want to determine if the user did not supply it and if they did, then slate the $url_is_good var as not good basically.
Does what you just said accomplish that? Also, what substitution would I use to put it into a string if http:// or https:// were omitted at submission time?
Main Topics
Browse All Topics





by: Fairlight2cxPosted on 2009-07-03 at 08:18:59ID: 24772866
Anchor your http and exclude a couple more characters:
m|^https?://[^.:/]+\..+|
The anchor (caret) means that the pattern can -only- match at the beginning of the line. Additionally, they can't double-iterate http:// if you ban : and / via the negation set.