in reply to Regex help
You want capture and lookahead, print $2, $/ while /(\b\w+\b)(?=(.*?)\1)/g; \1 there is the form of backreference needed in regexen.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Regex help
by bmann (Priest) on Jan 30, 2004 at 00:01 UTC | |
|
Re: Re: Regex help
by ysth (Canon) on Jan 30, 2004 at 03:11 UTC | |
by BUU (Prior) on Jan 30, 2004 at 08:03 UTC | |
by ysth (Canon) on Jan 30, 2004 at 09:30 UTC |