- or download this
local $_ = 'foo';
m/\Gfoo/gc && say 'Matched foo';
m/\G.+/gc && say 'Matched dot star';
m/\G\z/gc && say 'Matched end of string';
- or download this
Matched foo
Matched end of string
- or download this
local $_ = 'foo';
m/\Gfoo/gc && say 'Matched foo';
m/\G.*/gc && say 'Matched dot star';
m/\G\z/gc && say 'Matched end of string';
- or download this
Matched foo
Matched dot star
- or download this
local $_ = 'foo';
m/\Gfoo/gc && say 'Matched foo';
m/\G.*\z/gc && say 'Matched dot star and end of string';
- or download this
Matched foo
Matched dot star and end of string