Hi Charles, >> /^[^a-z]{0,10}(http:\/\/|www\.)(\w+\.)+(com|net|org|biz|cn|ru)\/?[^ >> ]{0,20}[^a-z]{0,10}$/msi >> This allows for some amount (up to ten chars?) of text before and >> after the URI if I'm reading that right, correct? > > Nope. With the /ms flags ^ and $ at beginning and end match the *whole* body > as a single 'string' and permit 'any character' (. or [^x]) matches to also > match newlines. So the above regex translates to:
This was very helpful, thanks. I might be doing something wrong, or there's a typo somewhere. It seems to catch situations where there's more than just a URL in the body, such as just additional text. This is what I have: /^[^a-z]{0,10}(http:\/\/|www\.)(\w+\.)+(com|net|org|biz|cn|ru)\/?[^ ]{0,20}[a-z]{0,10}$/msi Thanks again, Alex