Regular expression to delete text after first 5 numbers
R
Rilla Springstead
started a topic
about 6 years ago
Hi! We currently have an expression to delete all the text BEFORE a number. But we are changing cc processors & will now get the number at the beginning of the field, so we need to have a regular expression where everything after the number is deleted. Our current expression is: ^.*?(?=\d{5}$)
Can anyone help us with how to change it around? Thanks so much!!
1 Comment
A
Amanda Tetanich
said
about 6 years ago
Hi Rilla,
Can you try this one?
Replacement value: -- blank -- Value to match: (? Good luck!
Rilla Springstead
Hi! We currently have an expression to delete all the text BEFORE a number. But we are changing cc processors & will now get the number at the beginning of the field, so we need to have a regular expression where everything after the number is deleted. Our current expression is: ^.*?(?=\d{5}$)
Can anyone help us with how to change it around? Thanks so much!!