Results 1 to 3 of 3

Thread: regex filters

  1. #1
    Registered User datadog's Avatar
    Join Date
    Mar 2002
    Posts
    152

    regex filters

    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
    Last edited by datadog; 11-16-2003 at 04:28 PM.
    dd

  2. #2
    Registered User Zaphod's Avatar
    Join Date
    Dec 2001
    Posts
    648

    Re: regex filters

    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:
    Code:
    Type:Animal;-45
    Enjoy,
    Zaphod (dohpaZ)
    Chief Software Engineer of the Apocalypse.
    http://showeq.doomed.to/
    SourceForge.net user: dohpaz.

    Personal thank you donations are now accepted.

  3. #3
    Registered User datadog's Avatar
    Join Date
    Mar 2002
    Posts
    152
    Thanks Zaphod,

    As usual, the answer was right under my nose.
    dd

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

You may post new threads
You may post replies
You may post attachments
You may edit your posts
HTML code is On
vB code is On
Smilies are On
[IMG] code is On