This option discards points that have shortnames that match the provided regular expression. Discarding specific point by regular expression For example geocaches typically have names starting with GC followed by an alphanumeric sequence of variable length. To remove all six character long IDs that between (and including) GC1000 and GC2FFF, you could use gpsbabel -i geo -f geocaching.loc -x discard,matchname=GC[1-2]??? to discard all GCs followed by exactly three characters.