Reputation: 974
I just cant get the hang of regular expressions, trying to find the " , but not the ones with , on either side
I ","can haz ","kittens. "Mmmm". Tasty, tasty kittens.
Thanks in advance
Upvotes: 0
Views: 63
Reputation: 30273
This:
(?<!,)"(?!,)
Or, allowing for whitespace:
(?<!,\s*)"(?!\s*,)
Upvotes: 2