[Bioperl-l] regular expression help?
Paulo Almeida
paulo.david at netvisao.pt
Fri Jan 14 14:53:59 EST 2005
Hi,
There is something I don't understand in your expression (actually, there
is a lot, but the rest I can't even comment on). If you have
\S+(\S+)(\S{10}) , isn't the first \S+ going to match through the whole
string?
-Paulo
> Hi, Everybody,
> I was trying to use a regex recognizing a patter of inverted repeat DNA
> seq flanked by direct repeats (see below), it returns errors saying
> "(?{...}) not terminated or {...} not balanced. Can anybody help me
> sorting this out?
> The regex I have is:
> $regex =~ /\S+(\S+)(\S{10}).*(??{$rev=reverse(\2 =~
> tr/ATCG/TAGC/i);})\1.*/i;
> Thank you,
> Yang
More information about the Bioperl-l
mailing list