Hi,
I need some help crafting a regular expression.
Consider the following literal expressions:
Literal String A:
AccountNumber="
Literal String B:
StreetNumber="
I want to find all instances where String A is followed by
string B
(with any number of miscellaneous characters in between).
The catch is that I want to capture only instances where the
left four
digits of the AccountNumber equals the left four digits of
the
StreetNumber.
Examples:
I want to capture the following strings:
AccountNumber="11324324" blablablablabla
StreetNumber="11322345"
AccountNumber="234534" blabla
StreetNumber="2345999554"
I DO NOT want to capture the following string:
AccountNumber="345635" blabla
StreetNumber="6789689"
Thanks!
Jonathan
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
|