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.
PHP Code:
preg_match("/href='(.*)'/", $testing, $testing2);
but doesn't seem to work if the $testing variable has:
PHP Code:
$testing "<a href=james.com>"
Thanks in advance for any help
jDoG