Forum Moderators: coopster

Message Too Old, No Replies

I want to get a string using preg match.

         

lematou

6:49 pm on May 5, 2007 (gmt 0)

10+ Year Member



Hi,

I was looking for the good regexp, pattern I should use if i want to find this expression in a text file, string using preg_match

I would first to find this expression in a string where
"username" is always changing :

class="blue" value="username"

Once this expression found, I want to
receive the "username" withou the " "
all alone in a string...

I'm lost with the regexp, could someone help me.

Thanks,

Sebastien

joelgreen

1:57 pm on May 6, 2007 (gmt 0)

10+ Year Member



/class="blue" value="([a-z]+)"/