On Mar 31, 2005, at 9:50 AM, Dameron Midgette wrote:
Hi there! Thanks all of you, for your help... XHTML has the hN mapped to snippets, just had to dig farther. As for the \s space thing, it's clear now, but a bit inconsistent (or newbie confusing?). The find field works as expected, but replace accepts \t and \n, but not \s. (haven't checked others) I assumed they all would (started with \t), and forgot about my assumption. Perhaps the unambiguous (\t,\s,\n, etc. labeled "General Escape Codes" in the help files) markers could all work? IMHO, that would be more consistent.
As someone already pointed out, \s would match both a tab and a regular space, so it would not be so clear which of them you would want to use in the replace part, hence you are not allowed to be ambiguous like that :-)
Cheers, Dameron
On Mar 30, 2005, at 9:48 PM, Paul McCann wrote:
Find and replace in 1.1b5-- search for \t, replace with \s,
regex box checked, looking in selected text. I got "s" instead of space: 3 Union Street 3sUnionsStreet
I think you've misunderstood the regex characters: \s means "any single horizontal whitespace character", such as a tab or a space. You can't use this as a replacement character (it's *not* a character), just use a literal space instead. (ie, just type in a space for the replacement character.)
Cheers, Paul
[[I have no idea re the <H3> </H3> thing: entering "3" then a tab produces a 3 followed by a tab for me!]]
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Haris