[TxMt] problems with regex

tandemrepeat tandemrepeat at gmail.com
Mon Feb 27 16:44:27 UTC 2006


Hi,

This is not a TextMate problem...rather a user issue but would
appreciate any advice...

I'm trying to set up folding...the file format look like this (FASTA
DNA sequence format) -

>text
agagagtttttttttt...(typically 60chars)
...multiple lines of above, number of lines varies per record
>text2
agagagtcgtttta
.
.
.


Setting foldingStartMarker is easy i.e; (^>) but it's
foldingStopMarker whcih is proving to be tricky.

As I see it, need to match the last line immediately before a new
entry denoted by ^> .

I figure a look-ahead assertion regex is required...something like -

[AGTCagtc]+     # match any string of ACGT
(?=\n^>)            # positive look ahead for new line followed by >

But can't get this or numerous minor variants to work at all...

Any insight greatly appreciated (and apologies if this is an
inappropriate post for the forum)



More information about the textmate mailing list