Help with a regex trigger

Posted by Shadoweave on Wed 07 May 2008 06:37 AM — 3 posts, 13,732 views.

#0
I've been trying for hours to make ONE trigger that will match on these two messages:


^With a focused look, Rutharr strikes at you with a warrior's iron greatsword, and you partially parry the blow with an angelic battle hammer. --not newline here

and

^With a focused look, Rutharr strikes at you with a warrior's iron greatsword. --not newline here

I need a pattern that will allow me to store in a wildcard the weapon he is hitting me with (can be 16 different types of weapons, each with its own specific designs), but ignore the weapon I parried with (again, any other type of weapon).
Any suggestions?
Netherlands #1
Shouldn't:

^With a focused look, Rutharr strikes at you with (.*?)(?:, and you partially parry the blow with (?:.*)\.|\.)

work?

Edit 1: Crap, missed last line. Give me a moment.
Edit 2: Fixed?
Edit 3: Nevermind, I typoed my test output. >_> To be continued.
Edit 3: Fixed!
Amended on Wed 07 May 2008 08:43 AM by Worstje
#2
Thanks, it works.