Help for this page
# We're hunting the (properly bracketed)
$str =~ # 'm \d+' occurrences. They must be
(?:m \s \d+ \s)* # Any number of m \d+ groups.
bar)/xg; # Finally terminated with bar (though not
# necessarily the end of string.)
- starts at the current 'beginning' of the string
- matches the 'm \d+' at the current position
- matches (aft) all the remaining 'm \d+' and the final bar
- and THROWS AWAY the fore and aft matches (they're non-capturi
1. Keep it simple
2. Just remember to pull out 3 in the morning
3. A good puzzle will wake me up
Many. I like to torture myself
0. Socks just get in the way
Results (302 votes). Check out past polls.