Code:
I want to return WEAPON, X and Y so i'm scanning this string using the following Regexp:<require: WEAPON id: X lvl: Y>Code:
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?/<require: (\w) id: ([+-]\d+) lvl: ([+-]\d+)%?>/i