evgen-i has asked for the wisdom of the Perl Monks concerning the following question:
So basically, it is a sequence of html escape codes, of which only the first one starts with an &. I need to insert an & before each of the following (without spaces) codes. How can I do that? It looks like I need some left context for this (i.e. the condition: the whole word starts with an &), but I don't know how to specify it. So far I can insert the & sign only on the first wrong code (gt). Thank you! Eugene.>lt;amp;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Question for regex experts
by AnomalousMonk (Archbishop) on Jun 27, 2013 at 12:50 UTC | |
|
Re: Question for regex experts
by ww (Archbishop) on Jun 27, 2013 at 13:15 UTC | |
|
Re: Question for regex experts
by Sandy (Curate) on Jun 27, 2013 at 12:18 UTC | |
by evgen-i (Novice) on Jun 27, 2013 at 12:29 UTC | |
by sumeetgrover (Monk) on Jun 27, 2013 at 12:37 UTC | |
|
Re: Question for regex experts
by hdb (Monsignor) on Jun 27, 2013 at 12:53 UTC | |
|
Re: Question for regex experts
by Eily (Monsignor) on Jun 27, 2013 at 12:46 UTC | |
|
Re: Question for regex experts
by evgen-i (Novice) on Jun 27, 2013 at 13:07 UTC | |
by AnomalousMonk (Archbishop) on Jun 27, 2013 at 13:41 UTC |