in reply to greedy subexpression between two nongreedy ones
Have you considered testing for 'cd' in the replacement?
s/,(.*?),/=@{[$1 =~ m|(cd)| && $1 ]}=/
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: greedy subexpression between two nongreedy ones
by raygun (Scribe) on Jun 02, 2015 at 23:48 UTC | |
by Anonymous Monk on Jun 02, 2015 at 23:53 UTC | |
by raygun (Scribe) on Jun 03, 2015 at 01:40 UTC | |
by Anonymous Monk on Jun 03, 2015 at 00:02 UTC |