IB2017 has asked for the wisdom of the Perl Monks concerning the following question:
Dear monks
How can I write the following regex so that it matches ad infinitum all numbers that are x=x+5? In my regex I stopped at 25.
if ($Number=~/0|5|10|15|20|25/){ ... }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Match multiple number
by tobyink (Canon) on Aug 17, 2018 at 18:45 UTC | |
by IB2017 (Pilgrim) on Aug 18, 2018 at 10:44 UTC | |
Re: Match multiple number
by davido (Cardinal) on Aug 17, 2018 at 22:21 UTC | |
by tobyink (Canon) on Aug 18, 2018 at 02:58 UTC | |
Re: Match multiple number
by jwkrahn (Abbot) on Aug 17, 2018 at 18:47 UTC | |
by choroba (Cardinal) on Aug 18, 2018 at 07:05 UTC | |
Re: Match multiple number
by dbuckhal (Chaplain) on Aug 19, 2018 at 00:06 UTC | |
by tobyink (Canon) on Aug 19, 2018 at 03:30 UTC | |
by dbuckhal (Chaplain) on Aug 19, 2018 at 05:38 UTC | |
by tobyink (Canon) on Aug 19, 2018 at 06:33 UTC | |
by dbuckhal (Chaplain) on Aug 19, 2018 at 14:10 UTC |
Back to
Seekers of Perl Wisdom