Monks, how would I go about matching a character already matched a second time? For instance, the code:
/^.+?\w{2}
can match any two alphanumeric characters, but what if I want to match "aa" or "bb" or "zz"? I'm really looking for some code that will match when a word has three double-letter pairs in it, like "hullaballoo".
Thanks, Rob
demerphq editted, changed pre content to normal html
In reply to Repeated character in regex by typhoonmentat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |