The text is similar to this: +1191–1405 Holy Damage
The numbers can change as well as the Damage type. Like +777-1444 Fire Damage
ect.
What I want to do is extract the two numbers. So from the first example I want 1191
and 1405
and I need them to be integers not strings.
I've read up on preg_ stuff and such a bit and can do simple searches and parsing but i'm not quite at this level. I'm guessing I need to extract whatever numbers that are after +
but before -
, and after -
discarding everything else.