You can still use m// as a regex but as you can see spaces in the regex are non significant. It is quite similar to the effect of /x option in PCRE.
~~!~~operator.
use v6;
my $text = "Learning regexes";
if $text ~~ m/ regex / {
say "This is about regexes!";
}
if $text !~~ m/ foobar / {
say "No foobar in $text";
}