[x=1 y=3 z=5]
so that the match would return the results:
x, 1, y, 2, z, 3
I thought this would do the trick:
/\[((\w+?)\=(\d+?)|\s)*?\]/
but it's not matching anything. Sorry to be such a pain lately, but I'm trying to get better at regex. can this be done with a single pattern? any suggestions?
Edit: I'm trying to get this done with a single regex. I know I can use split for this stuff, but I'm trying to keep the number of operations to a minimum. Thanks though :D
In reply to Some more regex by toonski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |