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
In reply to Regexp a reverse-d string? by bsb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |