Peamasii has asked for the wisdom of the Perl Monks concerning the following question:
I'm looking for a regexp to match any of the following:
- empty string
- the character ? alone
- a number
and not to match any other strings.
Thanks a lot for helping this novice.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: need help with a Regex
by dragonchild (Archbishop) on Oct 06, 2004 at 14:49 UTC | |
Re: need help with a Regex
by Limbic~Region (Chancellor) on Oct 06, 2004 at 14:51 UTC | |
by Dietz (Curate) on Oct 06, 2004 at 15:32 UTC | |
by Limbic~Region (Chancellor) on Oct 06, 2004 at 15:44 UTC | |
by Dietz (Curate) on Oct 06, 2004 at 15:58 UTC | |
by Limbic~Region (Chancellor) on Oct 06, 2004 at 16:42 UTC | |
| |
by TedPride (Priest) on Oct 07, 2004 at 09:10 UTC | |
by Limbic~Region (Chancellor) on Oct 07, 2004 at 12:16 UTC | |
by Eimi Metamorphoumai (Deacon) on Oct 06, 2004 at 15:45 UTC |