preg_match square brackets
Posted: Wed Oct 28, 2009 4:33 pm
Code: Select all
preg_match("~.*word.*~i")],[],[]];
But PHP doesn't seem to like me using these special characters. How can I preg_match them?
Thanks
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
preg_match("~.*word.*~i")Could you show me the code please? I' think I've tried this and it didn't work- or maybe I just got it wrong.pickle wrote:Escape them with "\"