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)
In reply to match character in a set, then match one of the other ones by 7stud
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |