Positive Lookahead is not working

sample text - “invoice number-098888-JJHDR-INR-WERTYU”

ReGex - \w+(?=INR)

O/P
image

Hi @devasaiprasad_K

\w+(?=\-INR)

@devasaiprasad_K

(?<=invoice\s*number\-\d+\s*\-[A-Z]+\-)\w+(?=\-)

Or
image

\w+(?=\-INR)

image

(?<=INR\-)[A-Z]+

@devasaiprasad_K

(?<=INR\-)[A-Z]+

Hi @devasaiprasad_K

\w+(?=\-?INR)

If above is not the required output please share the required output too.

Regards

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.