diff --git a/web/regex_demo.html b/web/regex_demo.html index a3ed4a8..084686d 100644 --- a/web/regex_demo.html +++ b/web/regex_demo.html @@ -109,11 +109,13 @@ sub pp { Data::Dumper->new([@_])->Useqq(1)->Terse(1)->Pair('=>') sub sample_init { my $samp = shift; + state $samp_id = 'a'; + $samp->attr('id',"samp_".$samp_id++) unless $samp->attr('id'); my $samptxt = $samp->children(".samptxt"); my $samp_ta = $jq->('