Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Efficient regex search on array table

by dorko (Prior)
on Dec 14, 2022 at 21:14 UTC ( [id://11148866] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $sentence_rx = qr{
       (?: (?<= ^ ) | (?<= \s ) )  # after start-of-string or
    ...
           printf "\tgot sentence %d: <%s>\n", ++$count, $1;
       }
    }