Re: How to avoid this greedy match?

2008-02-01 Thread News Howardz
;[EMAIL PROTECTED]> To: beginners@perl.org Cc: News Howardz <[EMAIL PROTECTED]> Sent: Tuesday, January 29, 2008 10:02:48 PM Subject: Re: How to avoid this greedy match? News Howardz wrote: > > The original mail is regarded as a SPAM by Yahoo -- poor regex match :-(. > So I modify

Re: How to avoid this greedy match?

2008-01-28 Thread News Howardz
22". So I wrote regex like this: /(.*?222.*?<\/script>)/ But it doesn't work. It still selects the 2 script sections: "<script>xxxzzzy222yy". Does anyone have an idea how to achieve this? Thanks Howardz - Original Message From: News Howardz <[EMAI

Re: How to avoid this greedy match?

2008-01-28 Thread News Howardz
xzzzy%%%yy". Does anyone have an idea how to achieve this? Thanks Howardz - Original Message From: News Howardz <[EMAIL PROTECTED]> To: beginners@perl.org Sent: Tuesday, January 29, 2008 11:22:41 AM Subject: How to avoid this greedy match? Hi, I have a trouble when compo

How to avoid this greedy match?

2008-01-28 Thread News Howardz
Hi, I have a trouble when composing a regex. $str = "...xxxzzzyyy..." In the above string, "xxx" and "yyy", "zzz" stand for any substring other than "" I want to pick up "