diff options
| author | Simon Proctor <simon.proctor@zoopla.co.uk> | 2020-06-01 13:32:18 +0100 |
|---|---|---|
| committer | Simon Proctor <simon.proctor@zoopla.co.uk> | 2020-06-01 13:32:18 +0100 |
| commit | 307ff71cd6cd4f473a7aa2a76d2de009b97646db (patch) | |
| tree | a0e19416947de14555ca982a1845ccff514a4864 | |
| parent | ea20ed349a9ef101246e58ad227e44ab9e4716e9 (diff) | |
| download | perlweeklychallenge-club-307ff71cd6cd4f473a7aa2a76d2de009b97646db.tar.gz perlweeklychallenge-club-307ff71cd6cd4f473a7aa2a76d2de009b97646db.tar.bz2 perlweeklychallenge-club-307ff71cd6cd4f473a7aa2a76d2de009b97646db.zip | |
Small fix to space in regex test
| -rw-r--r-- | challenge-063/simon-proctor/raku/ch-1.raku | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge-063/simon-proctor/raku/ch-1.raku b/challenge-063/simon-proctor/raku/ch-1.raku index dd557ba8d8..ed1092c70c 100644 --- a/challenge-063/simon-proctor/raku/ch-1.raku +++ b/challenge-063/simon-proctor/raku/ch-1.raku @@ -9,5 +9,5 @@ sub last_word( Str $sentence, Regex $test ) { # Test Last_word say last_word(' hello world', rx/<[ea]>l/); # 'hello' say last_word("Don't match too much, Chet!", rx:i/ch.t/); # 'Chet!' -say last_word("spaces in regexp won't match", rx/"in" " " "re"/); # undef +say last_word("spaces in regexp won't match", rx/"in re"/); # undef say last_word( join(' ', 1..1e6), rx/^(3.*?) ** 3/); # '399933' |
