Ö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:
=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
- 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
> >
Ö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
- 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
Ö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,
Ö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
- 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
Ö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
- 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
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
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
- 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
>
>
> 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
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
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
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
Ö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
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
19 matches
Mail list logo