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 WC -Sx- Jones
Öznur Taştan wrote: In the below link I came across http://www.perl.com/pub/a/2002/06/04/apo5.html?page=8 $_ = "abracadabra"; @all = m:any /a.*?a/; produces: abra abraca abracada abracadabra aca acada acadabra ada adabra abra That only shows substrings within string that begin

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 Randy W. Sims
On 02/20/04 04:31, Öznur Taştan wrote: You are rigth to confuse beacuse I couldn't find the mail I wrote at the beginning that defines the problem.Sorry.. My problem was this I have a sets of patterns and a string and I know in which order these patterns are supposed to exists What I try to do was

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 mail I wrote at the > > beg

RE: all matches of a regex-continued

2004-02-20 Thread David le Blanc
> > In the below link I came across > > http://www.perl.com/pub/a/2002/06/04/apo5.html?page=8 > > $_ = "abracadabra"; > @all = m:any /a.*?a/; > produces: > What version of perl are we talking about here? 5.8 or 6 maybe? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

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 >

Re: all matches of a regex-continued

2004-02-20 Thread Randy W. Sims
On 02/20/04 06:06, Öznur Taştan wrote: 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 Ok, welcome to the wonderful world of dynamic code generation. The code below is ugly as

Re: all matches of a regex-continued

2004-02-20 Thread Randy W. Sims
On 02/20/04 07:03, Öznur Taştan wrote: I didn't know something exists like this, thanks that will be very helpful but still does this solve the problem of regular expression patterns istead of keys just as I mentioned in the first mail. " I am still dealing with the same problem. Rob has suggested

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 Rob Dixon
Öznur tastan wrote: > > 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: / Are you just saying that

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. > &g

Re: all matches of a regex-continued

2004-02-20 Thread WC -Sx- Jones
Öznur Taştan wrote: http://www.perl.com/pub/a/2002/06/04/apo5.html?page=8 $_ = "abracadabra"; @all = m:any /a.*?a/; produces: abra abraca abracada abracadabra aca acada acadabra ada adabra abra Is there a version available that supports this structure? Or are there any creative i

Re: all matches of a regex-continued

2004-02-20 Thread WC -Sx- Jones
Öznur Taştan wrote: My problem was this I have a sets of patterns and a string and I know in which order these patterns are supposed to exists What I want is to extract all the substrings when the patterns match to the string. And not rewrite or randomize the results of substring,

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 WC -Sx- Jones
Öznur Taştan wrote: My problem was this I have a sets of patterns and a string and I know in which order these patterns are supposed to exists > What I want is to extract all the substrings when the patterns match to the string. Do you want: xHxx yy z t x xxHyy z t as a solution

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 > >

Re: all matches of a regex-continued

2004-02-20 Thread WC -Sx- Jones
=pod WC -Sx- Jones wrote: Do you want: xHxx yy z t x xxHyy z t as a solution set? Or just those substrings which begin and end with HDK? An example - =cut $_ = 'supercalifragilisticexpialidocious'; # Find ali agili iali print m/i?[la].*?i/g; # Result (one string): aliagiliiali

Re: all matches of a regex-continued

2004-02-20 Thread Rob Dixon
Öznur tastan wrote: > > - 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: