I want to use a regex to assign a portion of the string ( including whitespace) into different slots in an array there can be any number of TAG=xxxx values. I tried the regex :$a ="aaa bbb ccc dd ee ff dd TAG=lls foo TAG=some randome tag TAG=last +_tag";
I used several other permutations of a regex all to no avail. I was hoping that somebody can point me in the right direction. Thank You@b = ($a =~ m/aaa bbb .*? (TAG=.*) */g); @b = ($a =~ m/aaa bbb .*? {1,}(TAG=.*) */g)
In reply to Repeating regex assign to a list by iang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |