Regex question
Posted: Sat May 06, 2006 9:14 pm
Question using preg_match()
This is my current line:
How can I have preg_match() return true if I have multiple lines submitted
Example:
That submission will work, but if I do:
it does not work. Any idea on how I can make it accept line breaks?
This is my current line:
Code: Select all
preg_match("/<([a-z])?\>(.*?)\<\/([a-z])?\>/", $str, $matches);Example:
Code: Select all
<php><? echo "hello world"; ?></php>Code: Select all
<php><?
echo "hello world";
?></php>