I have a problem. I need to find all the numbers which comes after the Voucher. I am using (?<!Voucher)\d+ but its selecting all the numbers.
few string example are below
Your DriveAway Car Hire Voucher UK 5138695 - DOE, JOHN
I am using this will this work - (?<=Confirmation\D)\d+|(?<=Voucher\D)\d+****
I came across another scenario.Hopefully you can help me out here too.
While looping through each row Sometime the string have number but not the Voucher(specific word). How to extract that as well?
String - Your Booking Confirmation 19107756 - SWANEPOEL, PIETER. Number will always fall after Confirmation.
Type of Strings -
1.Your Booking Confirmation 19107756 - SWANEPOEL, PIETER
2.Your DriveAway Car Hire Voucher UK 5272953 - HANNEY, JOHN
3.Attn: HELIO - Voucher # 293866 Client: PHAYER