Also use qr to quote regular expressions instead of manually backslashing everything.
That's actually not necessary here. The OP was just escaping things that didn't need escaping.
$x = "<div class='roundedBoxBody'><p>"; $y = '<p> </p></p>';
Works just as well.
In reply to Re^2: Regex not working
by davorg
in thread Regex not working
by imrags
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |