Sign in to follow this  
Followers 0

GSAK Filtering Tip

7 posts in this topic

Posted · Report post

I'm finally getting around to sharing this tip...

 
So, back when I took five minutes or so to see how remotely close I would be to completing a color challenge, I thought using GSAK to filter for cache names that had RED in them would be simple.  Well, turns out it isn't so simple.  First problem is that it needs to be the only word, so words like Wired, Lingered, Pictured, Redoubtable, etc. just don't make the cut.  Other problems are to test for First word in the title, check for punctuation, etc.
 
So, i turned to my brother Kemis (some of you have met him...)  He is programmatically inclined as I am, but he has much more persistence at sticking with a problem until a solution is found.  If I can't find the answer in two minutes (maybe five tops), then i move on.
 
So, he comes back with this answer:
 
(^|\s|\W){1,}RED(\W|\s|$){1,}
 
So, I wish you could just put this in the MFilter search box at the top of GSAK, but you can't.  not sure why.  The way to use that snippet of code is to Go to the Filter command (CTRL+F).  On the cache name, select RegEx and then put the text above in the box to the right.  See below.  Be sure to change RED to whatever you are really looking for.  Set other filters as needed (Such as Found/Not Found).
 
In my limited testing, this seems to work.  Of course, I'm not really sure what it is NOT showing me.  I'd love to hear if anybody finds a problem with this filter options.

 

REDFilter2.jpg

 

Share this post


Link to post
Share on other sites

Posted · Report post

Seemed to work fine for me.  Substitute "WEST" (or east or north or south) for "RED" and it can help find out if you qualify for another challenge cache in the area. ^-^

KeyResults likes this

Share this post


Link to post
Share on other sites

Posted · Report post

Regular Expressions are a wonderful thing! Very powerful. Well done. 

Share this post


Link to post
Share on other sites

Posted · Report post

I just decided not to do a color challenge and my problem was solved very quickly. Lol

Share this post


Link to post
Share on other sites

Posted · Report post

I just decided not to do a color challenge and my problem was solved very quickly. Lol

Apparently someone has accepted a color challenge now?

 

Anyway, bumping this one, since I had to search for it to answer the question.

Dhaulaghiri and CANINE QUEEN like this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0