I have a string like this:
I want to return WEAPON, X and Y so i'm scanning this string using the following Regexp:
When i run my code, it returns an empty array, Im assuming it's caused by the multiple grouping. How can i do that regexp?
Code:
<require: WEAPON id: X lvl: Y>
Code:
/<require: (\w) id: ([+-]\d+) lvl: ([+-]\d+)%?>/i