develooper Front page | perl.fwp | Postings from March 2005

Re: Self-recognizing programs and regular expressions

Thread Previous | Thread Next
From:
fun_with_perl
Date:
March 7, 2005 15:05
Subject:
Re: Self-recognizing programs and regular expressions
Message ID:
d0imnb$hdh$1@post.home.lunix
Ah, the idea seems salvagable, but less elegant:

this sequence is self matching:
^
^\^
^\^\\\^
^\^\\\^\\\\\\\^
....

so an infinite sequence of ^ with 2**n-1 \ after the n-th ^

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About