7stud has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
If I have a set of characters like a-z, how can I match one of those characters followed by another character in the group--but not the same one that matched? For instance, if the group first matches 'd', then the subsequent character should match a character in a-ce-z. I wish I could write:
([a-z] - \1)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: match character in a set, them match one of the other ones
by BrowserUk (Patriarch) on Aug 18, 2011 at 02:57 UTC | |
by moritz (Cardinal) on Aug 18, 2011 at 14:59 UTC | |
by BrowserUk (Patriarch) on Aug 18, 2011 at 15:13 UTC | |
|
Re: match character in a set, them match one of the other ones
by 7stud (Deacon) on Aug 18, 2011 at 05:48 UTC | |
by BrowserUk (Patriarch) on Aug 18, 2011 at 12:15 UTC | |
by 7stud (Deacon) on Aug 18, 2011 at 20:11 UTC |