[TxMt] Replace all matches with Regex substitution in Snippets
Brandon M Fryslie
bmf at email.arizona.edu
Mon Feb 14 07:07:34 UTC 2011
I am using the ${1/foo/bar} syntax to make a snippet. More specifically I
am mirroring/transforming a previous placeholder to replace all spaces with
underscores like this: ${1/ /_/}.
However, is this only replaces the first occurrence. Could anyone enlighten
me to the correct way to do this? Also, is there some documentation to the
'options' parameter in the regex replacement syntax? I couldn't seem to
find any under regex or snippets on the TextMate site.
Thanks
Brandon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20110214/f8bd70ad/attachment.html>
More information about the textmate
mailing list