I remember a friend doing this in a Tcl because it didn't have non-greedy quantifiers. (I wish I could remember the details... It was a very long time ago)$ perl -wle 'reverse("abcd") =~ /(cb)/; print $1' cb
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regexp a reverse-d string?
by jmcnamara (Monsignor) on Apr 14, 2003 at 08:29 UTC | |
|
(jeffa) Re: Regexp a reverse-d string?
by jeffa (Bishop) on Apr 14, 2003 at 16:34 UTC |