Regex to match odd numbers

David Cantrell david at cantrell.org.uk
Wed May 28 12:40:17 BST 2014


On Tue, May 27, 2014 at 05:08:16PM +0100, Jasper wrote:

> Something like the prime regex would work:
> ('1' x $foo) =~ /^(11)*1$/

Ahhh, the Right Sort Of Mad :-)

-- 
David Cantrell | Nth greatest programmer in the world

  Irregular English:
    you have anecdotes; they have data; I have proof


More information about the london.pm mailing list