PHP Regex string matching

ornardyRoyand

New Member
I'm new to PHP and generally regular expressions. I have to match words that contains strings like \[code\]word[0-9]* = any string here\[/code\] . How do I write a regex for this. So far I have come up with this but it doesnt seem to find the strings properly.\[code\]$regexp = "word[0-9]* = [A-Z](.*)[a-z]";\[/code\]How would I correct the above expression?Thanks in advance
 
Back
Top