On 20/02/2008, marios tmtxpstuff@consking.com wrote:
So this is the task:
Match every beginning of a line, including the first line of the document, and put that in Capture register one, then match every line until the end of the Line, end put that in Capture Register 2, then replace every instance, with some extra Markup (The spantags here ) plus Capture Register 2.
This works from within TextMate, but not in Javascript.
OK, so this really hasn't anything to do with TextMate. Perhaps Javascript won't let you match newline characters? Try this regular expression instead, it may work better:
^(.*)$