in reply to Re^2: Replace newlines only if not inside braces
in thread Replace newlines only if not inside braces
$data =~ s<(?:{{.*?}}|[^\n])*\K\n>{<br>\n}gs; print $data;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Replace newlines only if not inside braces
by LanX (Saint) on Feb 11, 2013 at 20:15 UTC | |
by trizen (Hermit) on Feb 11, 2013 at 21:47 UTC |