hi,
how do i match anything in the expression other than "certain words".
Say i have bunch of strings like this:
1234.abc.com,
asd.abc.com,
ees.abc.com,
Now i want to match all the strings that do not have " at the start of the string.
For example in the strings above the ones that would get through are:
1234.abc.com
asd.abc.com
ees.abc.com
the should not match.
I have the regext mostly figured out except it matches " also.
how do i match anything in the expression other than "certain words".
Say i have bunch of strings like this:
1234.abc.com,
asd.abc.com,
ees.abc.com,
Now i want to match all the strings that do not have " at the start of the string.
For example in the strings above the ones that would get through are:
1234.abc.com
asd.abc.com
ees.abc.com
the should not match.
I have the regext mostly figured out except it matches " also.
Code:
$test = "[URL unfurl="true"]www.abc.com";[/URL]
$str2 = "/^[^www]\.?([^\.]+)\.abc\.com/";
if( preg_match($str2,$test,$match2) )
{
print_r($match2);
}