From saul@visualchutzpah.com Sat Mar 14 20:55:58 2009 From: Saul Rosenbaum To: textmate@lists.macromates.com Subject: [TxMt] regex in a snippet Date: Sat, 14 Mar 2009 16:55:55 -0400 Message-ID: <195163120903141355p5e675954y7bd5c517a8b6fa55@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0835567393936649474==" --===============0835567393936649474== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Howdy; Finally getting around to tweaking some html snippets, and I'm stuck - this is what I have:
  • $1
  • $2 what I'm trying to accomplish is (replacing the spaces with underscores and making it all lowercase)
  • This is a Mixed case String with SPACES
  • I'd really like to understand how to accomplish this (rather than just get an answer). thanks in advance saul --===============0835567393936649474== Content-Type: text/html Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="attachment.htm" MIME-Version: 1.0 SG93ZHk7PGJyPkZpbmFsbHkgZ2V0dGluZyBhcm91bmQgdG8gdHdlYWtpbmcgc29tZSBodG1sIHNu aXBwZXRzLCBhbmQgSSYjMzk7bSBzdHVjayAtIDxicj48YnI+dGhpcyBpcyB3aGF0IEkgaGF2ZTo8 YnI+Jmx0O2xpIGlkPSZxdW90OyR7MX0mcXVvdDsmZ3Q7Jmx0O2EgaHJlZj0mcXVvdDsjJnF1b3Q7 Jmd0OyQxJmx0Oy9hJmd0OyZsdDsvbGkmZ3Q7JDI8YnIgY2xlYXI9ImFsbCI+PGJyPndoYXQgSSYj Mzk7bSB0cnlpbmcgdG8gYWNjb21wbGlzaCBpcyAocmVwbGFjaW5nIHRoZSBzcGFjZXMgd2l0aCB1 bmRlcnNjb3JlcyBhbmQgbWFraW5nIGl0IGFsbCBsb3dlcmNhc2UpPGJyPgombHQ7bGkgaWQ9JnF1 b3Q7dGhpc19pc19hX21peGVkX2Nhc2Vfc3RyaW5nX3dpdGhfc3BhY2VzJnF1b3Q7Jmd0OyZsdDth IGhyZWY9JnF1b3Q7IyZxdW90OyZndDtUaGlzIGlzIGEgTWl4ZWQgY2FzZSBTdHJpbmcgd2l0aCBT UEFDRVMmbHQ7L2EmZ3Q7Jmx0Oy9saSZndDs8YnI+PGJyPkkmIzM5O2QgcmVhbGx5IGxpa2UgdG8g dW5kZXJzdGFuZCBob3cgdG8gYWNjb21wbGlzaCB0aGlzIChyYXRoZXIgdGhhbiBqdXN0IGdldCBh biBhbnN3ZXIpLjxicj4KPGJyPnRoYW5rcyBpbiBhZHZhbmNlPGJyPjxicj5zYXVsPGJyPgo= --===============0835567393936649474==--