Go Back   EQ2Flames Forum > Information and Resources > EQ2 Fan Site and Resource Provider Forums > Advanced Combat Tracker Forums > General ACT Discussion

Reply
 
LinkBack Thread Tools
Old 10-19-2009, 03:59 PM  
Lil Newbie
 
Character: Striikor
Guild: Purgatory
Server: Nektulos

Posts: 6
Photos: (0)

Default RegEx advice

What versions of Regex does ACT support? I am trying to capture autoattack misses and exempt CA misses. as CA misses are prefaced by 'with'{CA name} the following regex should work but mine does not :{

.*YOU try to (slash|crush|pierce) (?!with) (.+) (miss|deflects|parries|blocks|dodges|riposites)\.$

The flavor used does not seem to support the (?!) negative lookahead.

It is certainly possible that I have it formatted incorrectly but if so I don't see it. Is there a negative lookahead for the flavor of regex used by ACT?
Striikor is offline   Reply With Quote
Old 10-19-2009, 05:00 PM  
NO YOU WON'T
 
Illuminator's Avatar
 
Character: Aleraku
Guild: YMCA
Server: Blackburrow

Posts: 11,383
Photos: (0)

Send a message via AIM to Illuminator
Default Re: RegEx advice

All indications are that it's the built-in .NET version (System.Text.RegularExpressions).

You have a space before and after the with, which means if "with" isn't there, it'll still be looking for two consecutive spaces.
__________________
Oh shit I just had a memwipe, why is retarded uncle Roger still designing raids for this game again?
Some players might bot against encounters but it seems like he bots the encounter design!
Illuminator is offline   Reply With Quote
Old 10-19-2009, 06:39 PM  
Random User
 
Character: Baya
Guild: Tyranny
Server: Oasis

Posts: 130
Photos: (24)

Default Re: RegEx advice

You probably want this:

Code:
YOU try to (slash|crush|pierce)(?:(?! with).)+?, but .*(miss|deflects|parries|blocks|dodges|ripostes)\.
It's fairly inefficient, though.

edit

Code:
YOU try to (slash|crush|pierce)(?:(?! with).)+?, but .*(misses|miss|deflects|parries|blocks|dodges|ripostes)\.
Need to add in 'misses' if you want to capture missed double attacks as well.
__________________

A good plan violently executed now is better than a perfect plan executed next week.

Last edited by Sparks; 10-19-2009 at 06:53 PM.
Sparks is offline   Reply With Quote
Old 10-19-2009, 07:29 PM  
Lil Newbie
 
Character: Striikor
Guild: Purgatory
Server: Nektulos

Posts: 6
Photos: (0)

Default Re: RegEx advice

Doh! Thanks, both of you, Did not notice the second space and you are you are right it will not catch a the misses of the double attack. Thanks for the quick responses!
Striikor is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are On


Sponsor Ads


All times are GMT -4. The time now is 04:05 AM.


Design By: Miner Skinz.com Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Template-Modifications by TMS