trigger retrieveal

Posted by Neverwhere on Tue 24 Jun 2003 07:20 AM — 3 posts, 15,595 views.

USA #0
hp: 1121(1175) sp: 474(474)

I have a trigger that retrieves the 1121 (or whatever is there) right now. I want to create a trigger that matches only the (1175) but is able to change if that number does.
((\w*)) wont work because there are alot of things that would match that (note the one after sp:). Any ideas? (reg expressions please)
Amended on Tue 24 Jun 2003 07:28 AM by Neverwhere
Canada #1
hp\: \d*\((\d*)\)

I made that up on the fly, but I think it should match. Did you want the trigger to get both the 1121 and the 1175 within the same trigger?

hp\: (\d*)\((\d*)\)

Give it a whirl.
USA #2
thanks, i used hp: (\w*)((\w*)) and just sent %2 to the variable...