I'm trying to match the same group of three digits in two
places in my
strings. Is this possible?
I want to match the digits a string of this type:
LDAP://OU=458 Users,OU=458,OU=Teams,DC=
The above string should return a match but this should fail:
LDAP://OU=458 Users,OU=459,OU=Teams,DC=
This is the pattern that I'm using to match it at the mo:
^LDAP://OU=[0-9][0-9][0-9]
Users,OU=[0-9][0-9][0-9],OU=WRBR,DC=
Is there a way to get a match only if the two
[0-9][0-9][0-9] bits are
the same.
SSG
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regex googlegroups.com
To unsubscribe from this group, send email to
regex-unsubscribe googlegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---
|