whitespace you're not accounting for ... If that's the case, I think you would want /}\n\w*}/
That should probably be /}\n\s*}/, since \w means a word character.
/}\n\r?}/
That should probably be /}\r?\n}/, since \n\r would be LFCR (see also).
In reply to Re^2: How can I match this }\n} in perl
by haukex
in thread How can I match this }\n} in perl
by nkg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |