Hi,
Would I be able to capture hit point type numbers from this sequence:
You attack Worshipper
22:00 689 438 >>
HP: 666/700 CP: 438/691
You are fighting Worshipper
Your body closes up some of your wounds
HP: 676/700 CP: 437/691 ADRENALINE: 105 ENDORPHINE: 0 BERSERK: 10 Worshipper: 55%
thanks,
Thufir
hit points regex
Re: hit points regex
Assuming you only want to capture the HP's, this will do what you need:
Your actual current HP will be stored in matches[2], with the max stored in matches[3].
Code: Select all
^HP\: (\d+)\/(\d+) CP\: (\d+)\/(\d+)( .+)?$