in reply to Is there a way to allow consecutive zero-length matches without using pos()?
I can easily generate a random string with
my $string = join q(), map +('a' .. 'z')[rand 26], 1 .. 10_000
but I have no idea what regex(es) to try to match to play with it.
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Is there a way to allow consecutive zero-length matches without using pos()?
by ambrus (Abbot) on Nov 03, 2017 at 16:24 UTC | |
by hippo (Archbishop) on Nov 03, 2017 at 16:41 UTC | |
by ambrus (Abbot) on Nov 03, 2017 at 17:05 UTC |