Re: Look Ahead

2003-08-14 Thread Todd W.
"Sharad Gupta" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi All, > > I have a path like: > > $s = "http::/foo/bar:http::/foo1/bar1:http/foo1/bar1"; ^^ Is your data accurately reflected in $s? There is no :: after the

Re: Look Ahead

2003-08-14 Thread Tassilo von Parseval
On Wed, Aug 06, 2003 at 07:02:21PM -0700 Gupta, Sharad wrote: > I have a path like: > > $s = "http::/foo/bar:http::/foo1/bar1:http/foo1/bar1"; > > I am trying to get all the http paths which are seperated by ":" like this: > > @x = ($s =~ /(http::.*?):(?=http::.*?)/g) > > The problem is i get

RE: Look Ahead

2003-08-14 Thread Gupta, Sharad
In the @x i am expecting to get all the http paths just like u showed in ur example. This should work fine. Thanx, -Sharad -Original Message- From: Todd W. [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 9:32 PM To: [EMAIL PROTECTED] Subject: Re: Look Ahead "S