On Sep 29, 11:03 am, [EMAIL PROTECTED] (Paul Lalli) wrote:
> On Sep 28, 3:18 pm, [EMAIL PROTECTED] (Loke) wrote:
>
> > Hi. I am trying to filter strings which do not have :// in them, I am
> > able to find strings with :// but I want to do the exact opposite.
>
> > regex to match :  /(.*:\/\/.*)/i
>
> > I tried /(.*(?!:\/\/).*)/i but it does not work.
>
> if ($string !~ m{://}) { ... }
>
> Paul Lalli
Paul:
Thanks for the help, but I think I have not put my problem correctly.
I want to match and replace only strings which do not have :// in
them. That means I would need to use s/// and that is why I need to
negate the match itself.
Loke


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to