N
newjazzharmony
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
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