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


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


Reply via email to