Richard Lloyd
asked on
REGEX with 2 formats
Hi I have a regex which works fine on
ABCDE123456X - /LYBLA[0-9]{6}X/i (Fixed ABCDE, followed by 6 digits, and a fixed X.
I need to change this to be able to use a 7th digit instead of the final fixed X as well as the original format, for example
ABCDE1234567 and ABCDE987654X
Please advise
ABCDE123456X - /LYBLA[0-9]{6}X/i (Fixed ABCDE, followed by 6 digits, and a fixed X.
I need to change this to be able to use a 7th digit instead of the final fixed X as well as the original format, for example
ABCDE1234567 and ABCDE987654X
Please advise
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Solution according to author's comment
ASKER