Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (13 sloc) 468 Bytes
###
### regex-test.nqp: Test workings of Perl6Regex objects
###
# TO USE:
# $ parrot-nqp regex-test.nqp
# Load Plumage::NQPUtil module, which includes the regex helper functions
pir::load_bytecode('Plumage/NQPUtil.pbc');
# Load data structure dumper
pir::load_bytecode('dumper.pbc');
# Wheee, probe testing ...
my $regex_object := /b+c/;
my $string_to_match := 'aaabbbcccddd aa bb cc dd abcd';
_dumper(all_matches($regex_object, $string_to_match), 'ALL');
Something went wrong with that request. Please try again.