Ö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
- 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.
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
Öznur Tastan wrote:
>
> Your suggestion was quite helpful but I got stuck when I try to modify it for
> general purpose. May be you will have an idea and want to help.
>
> The foreach $n( 1...length sequence) solves the combinatorial problem but the
> combinations can happen in second or third case
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
Öznur tastan wrote:
>
> 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
"Perl Lists"
<[EMAIL PROTECTED]>
Sent: Sunday, February 15, 2004 2:19 PM
Subject: Re: all matches of a regex
>
> Öznur Taþtan wrote:
>
> >Hi,
> >I have been trying to solve a problem which is about to drive me crazy.
> >May be some one know the answer(hop
Öznur Taþtan wrote:
>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 /^(
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
26 matches
Mail list logo