all matches of a regex

2004-02-15 Thread Öznur Taştan
Hi, I have been trying to solve a problem which is about to drive me crazy. May be some one know the answer(hopefully:) I want to get all macthes of a pattern in a string including the overlaping ones. For example the string is "xHxxHyyKzDt" and the pattern is /^(.*)H(.*)K(.*)D(.*)$/ so in one r

Re: all matches of a regex

2004-02-15 Thread Öznur Taştan
wow! creative! i think i can modify this for the general case. Thanks oznur - Original Message - From: "Rob Dixon" <[EMAIL PROTECTED]> To: "Öznur taştan" <[EMAIL PROTECTED]> Sent: Sunday, February 15, 2004 2:52 PM Subject: Re: all matches of a regex

Re: all matches of a regex-continued

2004-02-20 Thread Öznur Taştan
I am still dealing with the same problem. Rob has suggested me a good solution for macthing consecutive patterns like H K D but not more looser ones like for K[ED]{3,5}? L.{3}A andn my poor perl knowledge doesn't help me to generalize it: / In the below link I came across http://www.perl.co

Re: all matches of a regex-continued

2004-02-20 Thread Öznur Taştan
Perl Lists" <[EMAIL PROTECTED]> Sent: Friday, February 20, 2004 11:11 AM Subject: Re: all matches of a regex-continued > Öznur Taştan wrote: > > > In the below link I came across > > > > http://www.perl.com/pub/a/2002/06/04/apo5.html?page=8 > &g

Re: all matches of a regex-continued

2004-02-20 Thread Öznur Taştan
You are right but the sets of patterns can include any number of patterns which will mean a variable number of foreach loop and I don't know how to achieve. thanks oznur > On 02/20/04 04:31, Öznur Taştan wrote: > > You are rigth to confuse beacuse I couldn't find the

Re: all matches of a regex-continued

2004-02-20 Thread Öznur Taştan
- Original Message - From: "David le Blanc" <[EMAIL PROTECTED]> To: "Öznur Taştan" <[EMAIL PROTECTED]>; "Perl Lists" <[EMAIL PROTECTED]> Sent: Friday, February 20, 2004 1:35 PM Subject: RE: all matches of a regex-continued >

Fw: all matches of a regex-continued

2004-02-20 Thread Öznur Taştan
- Original Message - From: "Öznur Taştan" <[EMAIL PROTECTED]> To: "Randy W. Sims" <[EMAIL PROTECTED]> Sent: Friday, February 20, 2004 2:03 PM Subject: Re: all matches of a regex-continued > > - Original Message - > From: "Randy W.

Re: all matches of a regex-continued

2004-02-20 Thread Öznur Taştan
- Original Message - From: "Randy W. Sims" <[EMAIL PROTECTED]> To: "Öznur Taştan" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, February 20, 2004 2:11 PM Subject: Re: all matches of a regex-continued > On 02/20/04 07:03, Öznur Taştan

Re: all matches of a regex-continued

2004-02-20 Thread Öznur Taştan
- Original Message - From: "Rob Dixon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 20, 2004 4:17 PM Subject: Re: all matches of a regex-continued > Öznur tastan wrote: > > > > I am still dealing with the same problem. > > Rob has suggested me a good solution for ma

Re: all matches of a regex-continued

2004-02-20 Thread Öznur Taştan
- Original Message - From: "WC -Sx- Jones" <[EMAIL PROTECTED]> To: "Öznur Taştan" <[EMAIL PROTECTED]> Cc: "Perl Lists" <[EMAIL PROTECTED]> Sent: Friday, February 20, 2004 6:06 PM Subject: Re: all matches of a regex-continued > Öznur Ta

Re: all matches of a regex-continued

2004-02-20 Thread Öznur Taştan
- Original Message - From: "WC -Sx- Jones" <[EMAIL PROTECTED]> To: "Perl Lists" <[EMAIL PROTECTED]> Sent: Friday, February 20, 2004 6:22 PM Subject: Re: all matches of a regex-continued > Öznur Taştan wrote: > > >My problem was this > >

struct as an argument of a function

2004-02-22 Thread Öznur Taştan
Hi, I am trying to use struct as an argument of a function. In the piece of code I try to use $t as a parameter of the print_usage function but it gives the error: Can't call method "ru_stime" without a package or object reference at str.txt l ne 28. Could anyone explain what is wrong? thanks oz

struct as an argument of a function

2004-02-22 Thread Öznur Taştan
Hi, I am trying to use struct as an argument of a function. In the piece of code I try to use $t as a parameter of the print_usage function but it gives the error: Can't call method "ru_stime" without a package or object reference at str.txt l ne 28. Could anyone explain what is wrong? thanks oz

how to push a double dimensional array

2004-02-23 Thread Öznur Taştan
Hi all, I want to store alignment results( that is why I asked about struct yesterday). I thougt that I could just push seq1 seq2 and the score to an array and can acess them by using $k*3 + $n ($n=0 for seq1

Re: how to push a double dimensional array

2004-02-23 Thread Öznur Taştan
"Rob Dixon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Öznur tastan wrote: > > > > I want to store alignment results( that is why I asked about struct yesterday). > > I thougt that I could just push seq1 seq2 and the score to an array and can > > acess them by using $k*3 + $n (

Re: how to push a double dimensional array

2004-02-23 Thread Öznur Taştan
- Original Message - From: "Rob Dixon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 23, 2004 3:30 PM Subject: Re: how to push a double dimensional array > Öznur tastan wrote: > > > > "Rob Dixon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > > > >

Re: how to push a double dimensional array

2004-02-23 Thread Öznur Taştan
- Original Message - From: "Rob Dixon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 23, 2004 6:51 PM Subject: Re: how to push a double dimensional array > Charles K. Clarkson wrote: > > > > Öznur Taştan <[EMAIL PROTECTED]>

Re: regular expression that doesn't match any string

2004-02-25 Thread Öznur Taştan
- Original Message - From: "Rob Dixon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 25, 2004 1:20 PM Subject: Re: regular expression that doesn't match any string > Öznur tastan wrote: > > > > Just for fun (really no context) i was wondering how to create regular