Thread: php question
View Single Post
Old 09-11-2003, 11:34 PM  
JDog
Confirmed User
 
Join Date: Feb 2003
Location: Canby, OR
Posts: 7,453
php question

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
__________________
NSCash now powering ReelProfits.com
ALSO FEATURING: NSCash.com :: SoloDollars.com :: ReelProfits.com :: BiminiBucks.com :: VOD
PROGRAMS COMING SOON: Greedy Bucks :: Vengeance Cash
NOW OFFERING OVER 60 SITES
CONTACT :: JAMES SMITH :: CHIEF TECHNOLOGY OFFICER :: ICQ (711385133)
JDog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote