regex :

Documentation for regex :, assembled from the following types:

language documentation Regexes

From Regexes

(Regexes) regex :

You can prevent backtracking in regexes by attaching a : modifier to the quantifier:

say so 'abababa' ~~ /.* aba/;    # OUTPUT: «True␤» 
say so 'abababa' ~~ /.*: aba/;   # OUTPUT: «False␤»