[^\r?\n]*[\r?\n]
What is that part supposed to match?
What you wrote there makes little to no sense in the context of trying to match lines. Please read perlre and perlretut to find out how character classes work. Wildly adding things to character classes usually makes things worse..
In reply to Re^7: Regex find and replace involving new line
by Corion
in thread Regex find and replace involving new line
by PRA007
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |