go ahead... be a heretic | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Writing your own regex library can help you understand some of the more
obscure features of Perl's regexes. :-)
The following regex matches lines consisting of words whose length form the fibonacci sequence 1, 1, 2, 3, 5, 8, 13, etc. Caveat: All words must consist of the same character.
Examples of valid input: Ok, it's probably not very useful, but I thought I'd post it anyway.
In reply to fibonacci regex by mauke
|
|