@blocks = /:\w.*? type = .*?(?=:\w)/sg;
You need zero-width lookahead for the final :\w substring. Otherwise it will already have been consumed and no longer available when the next match attempt starts. Also, you need option /g for "global" matching.
In reply to Re: grabbing chunks of text
by almut
in thread grabbing chunks of text
by spencerd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |