Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 6eaf3698eb17da74106417bf0b32aef8 > files > 564

padre-0.980.0-2.mga4.noarch.rpm


use v6;

grammar Property {
	rule key { 
		(\w+)
	}
	rule value { 
		(\w+)
	}
	rule entry {
		<key> '=' <value> (';')?
	}
}

my $text = "foo=bar;me=self;";
if $text ~~ /^<Property::entry>+$/ {
	"Matched".say;
} else {
	"Not Matched".say;
}