dominic01 has asked for the wisdom of the Perl Monks concerning the following question:
I have a line like
$Line = "Please;, read these°, before you post 180;, if you're not absolutely –, sure you're posting";
I am trying to replace the ";," with ";". However it should not replace if the comma follows an entity.
My output should be
$Line = "Please; read these°, before you post 180; if you're not absolutely –, sure you're posting";
Appreciate any help on framing the regex. I am using perl 5, version 20, subversion 1 (v5.20.1) built for MSWin32-x64-multi-thread
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Look Behind issues
by AnomalousMonk (Archbishop) on Mar 05, 2015 at 06:25 UTC | |
by dominic01 (Sexton) on Mar 05, 2015 at 15:40 UTC | |
|
Re: Look Behind issues
by Anonymous Monk on Mar 05, 2015 at 05:11 UTC | |
by dominic01 (Sexton) on Mar 05, 2015 at 15:37 UTC | |
|
Re: Look Behind issues (just matching)
by Anonymous Monk on Mar 05, 2015 at 04:26 UTC | |
by Anonymous Monk on Mar 05, 2015 at 04:32 UTC |