[TxMt] assigning a scope to an empty line

Domenico Carbotta domenico.carbotta at fastwebnet.it
Sun Dec 18 00:28:09 UTC 2005


1. ^\n matches an empty line (and by empty I mean EMPTY ;)
2. ^\s*?\n matches lines that are empty or contain only whitespace
3. ^\s*\n matches *groups of 1 or more consecutive lines* that are  
empty or contain only whitespace

I think (and experiments show that) $ before \n is superfluous.
(the difference btw. 2 and 3 is in the non-greedy "?" modifier, but  
I'm not good enough at regexes to explain you the Arcane Secrets :)

ciao,

Domenico



More information about the textmate mailing list