RegEx Backreferences

winneri355e

New Member
Having the following regular expression:\[code\]([a-z])([0-9])\1\[/code\]It matches \[code\]a5a\[/code\], is there any way for it to also match \[code\]a5b\[/code\], \[code\]a5c\[/code\], \[code\]a5d\[/code\] and so on?EDIT: Okay, I understand that I could just use \[code\]([a-z])([0-9])([a-z])\[/code\] but I've a very long and complicated regular expression (matching sub-sub-sub-...-domains or matching an IPv4 address) that would really benefit from the behavior described above. Is that somehow possible to achieve with backreferences or anything else?Anon. answer is what I need, but it seems to be erroneous.
 
Back
Top