in reply to Re^2: Modifying the match position after each match
in thread Modifying the match position after each match
You're working much to hard:
#! /usr/bin/perl -w use strict; use locale; for my $s ( @{[ "_'nada_komo_el_'sol_", "_na'da_komo_el_so'l_" ]} ) { print $s; $s =~ s/(_)([^'][^_]+?)/$1'$2/g; print " : $s\n"; } __END__ C:\test>junk57 _'nada_komo_el_'sol_ : _'nada_'komo_'el_'sol_ _na'da_komo_el_so'l_ : _'na'da_'komo_'el_'so'l_
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Modifying the match position after each match
by Corion (Patriarch) on Mar 24, 2010 at 13:23 UTC | |
by BrowserUk (Patriarch) on Mar 24, 2010 at 13:29 UTC |