Topic: Regex Expressions.
I am attempting to write a regex expression for my jquery validation. I am attempting to make it match up with what I have cleaning the same textarea in my PHP code. I am using this generator or similar to help me. http://www.jslab.dk/tools.regex.php When making my expression I want to prevent http:// and www. but in the php it's preventing link= and url= should I match those instead? Is that BB code or something? Thanks!
Here are the PHP rules I want to match.
if (preg_match("{link=}", $comment) || preg_match("{url=}", $comment) || preg_match("{http://}", $comment))
{
header( "Location: $errorurl" );
exit ;
}
