Reputation: 55273
Input:
"Hello."
"'I'm not.'"
Regex:
/"\b/g // opening quote
/"\B/g // closing quote
Output:
“Hello.”
”'I'm not.'”
As you can see, the regex works OK when it's just a word. The problem arises when the word is surrounded by single quotes. Not sure what's the problem. Any ideas?
Upvotes: 0
Views: 187