@KiWiKo said in how to find commas between numbers, exclude them, and only find the rest of them:
@mkupper oh oh and also, how can i include punctuation at the end of sentences like here too:
that’s 500.
Search for ([0-9])[,.!?](\x20|$)
Replace with \1\2
The first group ([0-9]) matches and saves in \1 a decimal digit. The [,.!?] matches the set of punctuation characters you identified earlier. The second group (\x20|$) matches either a space or the end of the line. I used \x20 instead of a space for readability. You can use ( |$) but it’s not always obvious there is a space in there.
If you also want to remove punctuation at the end of sentences that end with a letter then use ([A-Za-z0-9])