I am trying to put it in a better way, (I hope :-))

What I am trying to do is check if two patterns could recognize the same
string, for example:
$pattern1=[ag]oprs[cd]xxxxx9;
$pattern2=[agpr]oprs;

these two patterns would recognize, both, a set of strings.  however
there will be some strings that only $pattern2 will match and viceversa.
So, How can I compare these two patterns to say if they are similar or
the same?

thanks again


On Thu, 2003-04-03 at 14:11, Diego Riano wrote:
> Hello All
> 
> I am having problem figuring out how to match two patterns.  I have two
> pattern and I would like to now if they are the same or if one of them
> is a sub pattern of the other.  Ej:
> $pattern1=[agpr]oprs[cd]xxxxx9;
> $pattern2=[agpr]oprs;
> $pattern3=aors;
> 
> $pattern2 is a "subpattern" of $pattern1, and $pattern3 is completely
> different form 1 or 2.
> 
> I was trying with If ($paternn1=~/$pattern2/){do somthing . .. }
> put it just works if the left side is a string, with a pattern it does
> not work
> 
> Some ideas??
> 
> Thanks in advance
> 
> Diego Riano

-- 
_______________________________________
Diego Mauricio Riano Pachon
Biologist
Institute of Biology and Biochemistry
Potsdam University
Karl-Liebknecht-Str. 24-25
Haus 20
14476 Golm
Germany
Tel:0331/977-2809
http://bioinf.ibun.unal.edu.co/~gotem
http://www.geocities.com/dmrp.geo/


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to