i'm a php programmer, just never really messed with regular expressions. now i'm running into a problem
I'm trying to creat a regular expression that will read a line of text from a file and if it has href=someurl. But nothing is working. here is what I hvae so far.
but doesn't seem to work if the $testing variable has:
Thanks in advance for any help 
jDoG
PHP Code:
preg_match("/href='(.*)'/", $testing, $testing2);
PHP Code:
$testing "<a href=james.com>"
jDoG

Comment