indapa has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way to make my regex more stringent so I don't get lines in my file I don't want? Thank you.if (/^1/) { print FILE, "$_\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: simple regex question
by beowulf (Scribe) on Mar 03, 2001 at 07:31 UTC | |
by Chmrr (Vicar) on Mar 03, 2001 at 07:37 UTC | |
by petral (Curate) on Mar 03, 2001 at 08:13 UTC | |
by beowulf (Scribe) on Mar 03, 2001 at 07:49 UTC | |
by Rudif (Hermit) on Mar 04, 2001 at 03:37 UTC | |
Re: simple regex question
by Tuna (Friar) on Mar 03, 2001 at 07:41 UTC | |
Re: simple regex question
by arturo (Vicar) on Mar 03, 2001 at 23:14 UTC | |
Re: simple regex question
by Madams (Pilgrim) on Mar 04, 2001 at 10:14 UTC | |
Re: simple regex question
by indapa (Monk) on Mar 04, 2001 at 01:03 UTC |