I think this question should be an easy one. I use a regex expression which, actually is:
str_pow = str_input.match(/(?:x)[^][+-]?\d{1,4}\s/g);
The problem lays in that I need only numbers, though they're still of string type(don't think about this), but not this part x^. Currently the how str_pow looks like is this
This means two things: I've to either edit my regex mask, or to find a way to cut the first two "x^" characters of for each element i of the array. Can you help me to do this, because I tried to slice but it was an unsuccessful experiment.

^xbut I need the ^x part in order to pick the proper values from the stringstr_powappear to be array , not string ? What is expected result ? array of digits ?x^some_numbers_here-elements and I need to cut thosex^in order to parse thesome_numbers_herepart later and convert it into an integer for further calculations.