Regex match not to include string

Hello Team,
i have a pattern - Sales Tax $1,098 , i want to write regex only to extract number, please guide

Hey Mayyur. I’ve tried to type in the RegEx, but it looks like the forum removes chars, so I had to paste it in notepad and give you the code in an image:
A simple solution
image
A more strict solution
image

Let me know, if that helps :slight_smile:

I’ve attached the two codes as well regexForMayyur.txt (48 Bytes)

1 Like

Hey @Mayyur

You can also use this expression to get only digits (?<=\p{Sc}).*
i’m attaching result of your string using the pattern
image

Cheers
@AndersJensen

1 Like

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