It's even easier to use split since you have a repeating structure. Chop off the first and last characters, then split it on = and spaces, and you should end up with an list of all the characters left. I assume that putting them in a hash would be appropriate, so you can just do exactly that with the return value.
-stvnmy %values = split /\=|\s/ => substr($string, 1, -1);
In reply to Re: Some more regex
by stvn
in thread Some more regex
by toonski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |