Jump to content


Photo

GSAK Filtering Tip


  • Please log in to reply
5 replies to this topic

#1 heftydude

heftydude

    Senior Member

  • Senior Members
  • PipPipPip
  • 688 posts
  • LocationHouston

Posted 24 February 2013 - 07:18 PM

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

 


  • cachestacker and KeyResults like this
Posted Image

#2 HoustonControl

HoustonControl

    Charter Member

  • Senior Members
  • PipPipPip
  • 9,811 posts
  • LocationBaytown

Posted 24 February 2013 - 09:13 PM

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
img.aspx?txt=What+in+the+Hell?&uid=1dd8c

#3 pindroppers74

pindroppers74

    Member

  • Members
  • PipPip
  • 144 posts
  • LocationHouston

Posted 24 February 2013 - 11:34 PM

Thanks for the tip!!


Posted Image

#4 TravelingGeek

TravelingGeek

    TravelingGeek

  • Senior Members
  • PipPipPip
  • 1,446 posts

Posted 24 February 2013 - 11:41 PM

Very nice!  Thanks!


Posted Image

#5 KeyResults

KeyResults

    Senior Member

  • Senior Members
  • PipPipPip
  • 1,282 posts
  • LocationTomball

Posted 25 February 2013 - 07:34 PM

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


Why am I all sweatty and late? Umm...

#6 TexasWriter

TexasWriter

    Senior Member

  • Senior Members
  • PipPipPip
  • 977 posts
  • LocationHouston, TX

Posted 25 February 2013 - 08:46 PM

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


Deep Woods Off....my most commonly used cologne...

 

img.aspx?txt=View+my+profile&uid=90f8013





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users