jxh has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; while ( <DATA> ) { s/(.*ing)(bob|fred|bill)(more)/\1HIT\3/; print $_ . "\n"; } __DATA__ somestringbobmoremore somestringfredmoremore somestringbillmoremore somestringtedmore
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Negating a regexp
by ikegami (Patriarch) on Jan 31, 2006 at 22:27 UTC | |
|
Re: Negating a regexp
by GrandFather (Saint) on Jan 31, 2006 at 22:28 UTC | |
by ikegami (Patriarch) on Jan 31, 2006 at 22:49 UTC | |
by GrandFather (Saint) on Jan 31, 2006 at 23:18 UTC | |
by jxh (Acolyte) on Feb 01, 2006 at 10:23 UTC | |
by GrandFather (Saint) on Feb 01, 2006 at 10:34 UTC | |
| |
by BrowserUk (Patriarch) on Feb 01, 2006 at 11:16 UTC | |
| |
by GrandFather (Saint) on Jan 31, 2006 at 22:54 UTC | |
by ikegami (Patriarch) on Jan 31, 2006 at 22:56 UTC | |
by GrandFather (Saint) on Jan 31, 2006 at 23:00 UTC | |
|