What are the different filters that can be used?

Scans for, and displays main/alt relations in your Guild

Moderator: PleegWat

What are the different filters that can be used?

Postby Rusky » Thu Aug 24, 2006 7:08 pm

How would I change the command to search for alt anywhere in the note?

Like if it's:
Herb/Alch Rusky's alt

Also can I search for multiple stings like:
alt Rusky
alt Rusky's
Rusky alt
Rusky's alt

Basically a list or tutorial on how the filters work would help me a lot.
Rusky
WR.net Apprentice
WR.net Apprentice
 
Posts: 15
Joined: Thu Aug 24, 2006 1:38 am

What are the different filters that can be used?

Postby PleegWat » Thu Aug 24, 2006 8:53 pm

It's hard to make a regex that detects multiple patterns. The first 2 would be caught by the following:

/alt (\w+)/i (Match 1)

The third would be caught by:

/(\w+) alt/i (Match 1)

The fourth:

/(\w+)'s alt/i (Match 1)

The last 2:

/(\w+)('s)? alt/i (Match 1)

Potentially, all 4:

/(alt (\w+)|(\w+)('s)? alt)/i (match 2, I think)

When making regexes like these you should study the matter a bit and test thoroughly. It's always better to have consistent notes and not use regexes like these.

The last one would act unpredictably in a note like:

Leatherworker alt Rusky
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm


Return to AltMonitor

Who is online

Users browsing this forum: No registered users and 1 guest

cron