in reply to Re: A complex recursive regex,help
in thread A complex recursive regex,help
my $a = "x|xx|xx|xxxx|xx|xxx|xx|xx|x"; $a =~ s/(?<=\|)xx(?=\|)/x x/g; print "[$a]\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: A complex recursive regex,help
by tachyon (Chancellor) on Feb 06, 2003 at 01:07 UTC | |
by OM_Zen (Scribe) on Feb 06, 2003 at 01:12 UTC |