Here is my regex: \(.+\n\) to be replaced by: \1\n
And I get: Unmatched '( or {'
I'm not using POSIX and the docs say the brackets need to be escaped, but it's not working. Why??? (Pleeease help me, it's driving me crazy)
-K
unmatched parentheses in regex :-(
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
Andreas
Re: unmatched parentheses in regex :-(
it is the \n which causes this.
Use
\(.+\)\n
instead and replace by
\1\n\n
Use
\(.+\)\n
instead and replace by
\1\n\n