[TxMt] TM doesn't have trouble with RE, but I have.
Sven Axelsson
sven.axelsson at gmail.com
Thu Feb 21 08:33:37 UTC 2008
On 20/02/2008, marios <tmtxpstuff at 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:
^(.*)$
--
Sven Axelsson
++++++++++[>++++++++++>+++++++++++>++++++++++>++++++
>++++<<<<<-]>++++.+.++++.>+++++.>+.<<-.>>+.>++++.<<.
+++.>-.<<++.>>----.<++.>>>++++++.<<<<.>>++++.<----.
More information about the textmate
mailing list