Snippet transformations don't work correctly

RoyalTS 9 years ago 0
According to http://blog.macromates.com/2005/the-power-of-snippets/, the following snippet should prepend a bullet point to every line in the current selection:
${TM_SELECTED_TEXT/^.+$/• $0/g}

However, this does not seem to work. Instead it only places a bullet in front of the first line and does not apply the regex replace multiple times.