Hello Guys, I need your help: Input ------------------------------Output
Invoice no. 00067250------------------67250
LX220727233ANI17
01993872209006CB
00067183-----------------------------67183
INV 65739J41840Originalbetr.--------65739
Invoice Number starts with 6 or 7 and is 5 Numbers. Problem is that I dont want to be extracted anything in the records with input like: LX220727233ANI17 or 01993872209006CB
Sometimes Invoice number starts with 000 sometimes not, I don’t need the 000 part.
Can you please build a REGEX to give the output outlined above?
Hi @hurmet.noka ,
“Invoice Number starts with 6 or 7 and is 6 Numbers”
-however your o/p is 5 digits starting with 6 or 7 +4 characters
below regrex will find invoice numbers matching 4 till 5 characters starting from 6 or 7
([6|7][\d]{4,5})
pfb the pattern and test data using regex101 Regex101 pattern
Regards
Very Specific, I have different scenarios where there is no Inv or invoice but just a long text like this:
01993872209006CB
On this case i dont want to extract the bold part