this matches all commas except for ones that are next to a digit in some way. change the , or \d or \D according to needs