${1:type here}
RESULT: ${1/(\w+)((?:_|\s)+)?/\L$1\E(?2:_)/g}
Your Code would look like:
<li id="${1/(\w+)((?:_|\s)+)?/\L$1\E(?2:_)/g}"><a href="#">$1</a></li>
Alas I wish there where more basic explanation in the docsI can''t for the life of me figure it out..On Sun, Mar 15, 2009 at 2:14 PM, Oliver Taylor <olivertaylor@me.com> wrote:
On Sat, Mar 14, 2009 at 1:55 PM, Saul Rosenbaum <saul@visualchutzpah.com> wrote:Take a look in the TextMate documentation § 7.7 "Transformations".
> what I'm trying to accomplish is (replacing the spaces with underscores and
> making it all lowercase)
> <li id="this_is_a_mixed_case_string_with_spaces"><a href="#">This is a Mixed
> case String with SPACES</a></li>
You'll find what you're looking for there.
_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate
_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate