Backreferencing regular expressions
Hi,
I have got a doubt about backreferencing regular expressions.
Suppose there is a string like "abc". A regex like (abc) would place the pattern matching it in $1. Is it possible to place "ac" alone in $1? I don't want "b" to be remembered in $1. In general, is there a way to match non continuous patterns in $1?
Thanks in advance.
|