use v6;
use experimental :rakuast;
my regex prefix_int( $prefix ) {
    <$prefix>       # First match prefix (as a regex)
    \d+             # Then match digits
}
say 'abc456' ~~ / <prefix_int: /abc/ > /;
rakura