PDA

View Full Version : Help with regular expressions



DragonFyre
05-18-2002, 03:27 PM
I was editing my PoF filters and noticed that Name:Fright matches both "Fright" and "a frightfinger". I'm wondering how can I make one that matches only "Fright".

I tried:
Name:^Fright
Name:^Fright$
Name:Fright$

But none of them matches anything. And Fright was up when I checked these.

Also, how do I put a filter that would match level 51 - 55 specrtes? Race:Spectre and Level:5[1-5] works for each individually, but how would I combine them?

Thanks a lot in advance

Cryonic
05-18-2002, 04:04 PM
To keep Fright from matching both, you have to set the filters to be case-sensitive. Also ^ means at the beginning of a line, so it shouldn't match anything like Name:^Fright. $ means end of line, so it won't work putting it right after the name because none of the mob lines end with just the mob name, they have the HP, position, items, etc... still on the line.

Name:Fright:

Mr Guy
05-18-2002, 04:54 PM
Look what order Race and Level come in then do either

Race:Spectre.*Level:5[12]

Or
Level:5[12].*Race:Spectre