I'm currently writting a script to read the raid log to automatically set my choice adventures for me. Right now, I'm working on burnbarrel blvd., deciding when to violently throw a tire on the fire. When to throw a tire violently will depend on how many hobos are left in the area.
Here's what I'm trying:
But it is unable to count how many hobos are left in the area. I don't get an error message, it just returns 0, (even when there have been hot hobos defeated).
I went to www.regexplanet.com to test my expression, and it works fine there. What am I doing wrong?
Here's what I'm trying:
PHP:
parser = create_matcher("defeated Hot hobo x (\\d+)", page_text) ;
while(parser.find())
hotHobosDefeated += parser.group(1).to_int() ;
But it is unable to count how many hobos are left in the area. I don't get an error message, it just returns 0, (even when there have been hot hobos defeated).
I went to www.regexplanet.com to test my expression, and it works fine there. What am I doing wrong?