zejames has asked for the wisdom of the Perl Monks concerning the following question:
Output:while (<DATA>) { s/foo/bar/ if ($_ !~ /toto.*?foo/); print; } __DATA__ toto 4dsf4qsd foo mama 432fz foo
toto 4dsf4qsd foo mamaf 432fz bar
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: look-behind regex
by Abigail-II (Bishop) on Jul 24, 2002 at 09:50 UTC | |
by japhy (Canon) on Jul 24, 2002 at 12:55 UTC | |
by Anonymous Monk on Jul 25, 2002 at 02:20 UTC | |
Re: look-behind regex
by DamnDirtyApe (Curate) on Jul 24, 2002 at 05:46 UTC | |
Re: look-behind regex
by Courage (Parson) on Jul 24, 2002 at 05:55 UTC | |
Re: look-behind regex
by I0 (Priest) on Jul 24, 2002 at 23:49 UTC | |
by Anonymous Monk on Jul 25, 2002 at 02:21 UTC | |
by I0 (Priest) on Jul 25, 2002 at 14:51 UTC | |
by Anonymous Monk on Jul 25, 2002 at 15:18 UTC | |
by I0 (Priest) on Jul 25, 2002 at 22:35 UTC | |
Re: look-behind regex
by flocto (Pilgrim) on Jul 24, 2002 at 10:22 UTC |