This doesn't work (but should) - that is, the coloring goes awry matches = storyText.match /{._?,._?}/g This is the workaround (to add brackets) matches = storyText.match(/{._?,._?}/g)
This doesn't work (but should) - that is, the coloring goes awry
matches = storyText.match /{.?,.?}/g
This is the workaround (to add brackets)
matches = storyText.match(/{.?,.?}/g)