PDA

View Full Version : regex filters



datadog
11-16-2003, 03:52 PM
Hey all,

Looking for some help with a regex filter.

As and example, I'd like to set up something that will identify all of the druid dire-charmable mobs in a zone.

In english, it would be.

"Animal" and "Level < 46"

This seems easy, but I havnt been able to figure out either the syntax for the "and" operator or the "less than" operator.

In the mean time, Im off to do some more google searching.

EDIT: After doing some more reading, (and increasing my understanding of regular expressions), Im guessing that the boolean stuff isn't doable. So im stuck matching for text only.

So i need a combination of the following
Type:Animal
Level:[1-9]
Level:1[0-9]
Level:2[0-9]
Level:3[0-9]
Level:4[0-5]

I just cant figure out how to get it all on one line =P

Zaphod
11-16-2003, 06:45 PM
Originally posted by datadog
Hey all,

Looking for some help with a regex filter.

As and example, I'd like to set up something that will identify all of the druid dire-charmable mobs in a zone.

In english, it would be.

"Animal" and "Level < 46"

This seems easy, but I havnt been able to figure out either the syntax for the "and" operator or the "less than" operator.

In the mean time, Im off to do some more google searching.

EDIT: After doing some more reading, (and increasing my understanding of regular expressions), Im guessing that the boolean stuff isn't doable. So im stuck matching for text only.

So i need a combination of the following
Type:Animal
Level:[1-9]
Level:1[0-9]
Level:2[0-9]
Level:3[0-9]
Level:4[0-5]

I just cant figure out how to get it all on one line =P

I suggest reading the formatting information in filters.conf.dist. It shows how to list a level range after the regex pattern.

I believe what you are looking for is:

Type:Animal;-45


Enjoy,
Zaphod (dohpaZ)

datadog
11-16-2003, 09:26 PM
Thanks Zaphod,

As usual, the answer was right under my nose.