ghosh123 has asked for the wisdom of the Perl Monks concerning the following question:
Hi
I have string which can hold following possible values :
I need a regexp to match all these above possible combinations.$string = "abc"; $string = "abc-def"; $string = "abc_def.12"; $string = ".abc"; $string = ".abc_123"; $string = ".abcd-def"; $string = "abcd.123.def";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: regex help required
by Corion (Patriarch) on Jun 24, 2013 at 07:14 UTC | |
Re: regex help required (question help too)
by Anonymous Monk on Jun 24, 2013 at 07:55 UTC | |
Re: regex help required
by hdb (Monsignor) on Jun 24, 2013 at 07:49 UTC | |
Re: regex help required
by space_monk (Chaplain) on Jun 24, 2013 at 09:36 UTC | |
Re: regex help required
by locked_user sundialsvc4 (Abbot) on Jun 24, 2013 at 13:16 UTC |