What does full resistance via DR look like? Would it be -/slashing
, for example?
In these examples I'm using a double-backslash as I expect these are being put into one of the MT regex functions and they require the backslash be protected by another backslash.
Try this regex to extract the DR (the first four characters turn off case-sensitivity; you may or may not want that depending on your incoming data):
And this one to extract the resistances:
(?i)\\bResist (\\w+) (\\d+)(,(\\w+) (\\d+))*\\b
There are some assumptions made in the above based on the sample you posted, so if you find that they do not work for a given input just post the sample data and we can update the RE.
I haven't tested either of these, but I think they're pretty darn close.