[TxMt] Little bit OT: regexp and javascript
José Campos
jose.campos+tm at galacsys.com
Wed Mar 22 10:09:31 UTC 2006
Geir-Tore Lindsve <lindsve at bluezone.no> wrote:
> > Find: <tr>[\s\n]+<td\s+class\=\"idag(((.|\n)(?!</tr>))+).</tr>
>
> Thanks! That seems to be right on the spot when it comes to one
> particular day, and I guess I can twist my brain enough to figure out
> how to find the individual data inside those blocks.
in one word "RTFM" (Help->TextMate Help->19 Regular Expressions)
>
> \s is space?
whitespace char (space, tab...)
>
> What does the pattern actually say between "idag" and </tr>?
« one or more character or end of line not followed by "</tr>", one
character and </tr> »
Btw, i could have done it shorter :
Find: <tr>[\s\n]+<td\s+class\=\"idag(((.|\n)(?!/tr>))+)</tr>
--
Jo <W:00°04'37" ; N:47°15'36">
1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72
More information about the textmate
mailing list