On Sat, Jan 19, 2002 at 12:13:05PM -0500, Jeff 'japhy' Pinyan wrote:
> Embedded code constructs, meaning which?  The (?{ let me see if $X less
> than $y }) construct?  Or the (??{ let me craft a dynamic regex instead of
> a huge one }) construct?  My solution uses the latter.

I intended to exclude both. I don't mind huge regexes -- my solution
is pretty big, though the code to generate it is less than two
(80-character) lines of Perl.

>   /^((.)\2*)((.).*?\1(??{"[^\Q$4\E-\\377]"})|.*?(??{"[^\Q$2\E-\\377]"}))/

That doesn't seem to work. The string "aba" is shrinkable, yet your
regex doesn't match it.

 .robin.

Reply via email to