regex (regular expresesions) support for searches

Forum to discuss the NewsLeecher SuperSearch Service.
• Before posting SuperSearch questions, please read the SuperSearch Usage Guide.
• The current SuperSearch status is listed on the Services Status Page.
Forum rules
IMPORTANT : Be sure to read the NewsLeecher forums policy before posting.
Post Reply
Posts: 11
Joined: Thu Jun 19, 2014 6:34 pm

regex (regular expresesions) support for searches

Post by elgwahpo »

Any way regular expression support could be added for supersearch?

For example when searching for something that uses 2 common words for its name, or 2 strings that are fairly short and often appear as substrings of other words.
For the short string search it would be nice to be able to tell search to not treat the word as a possible substring.
And since sometimes 2 words in a subject might be seperated by something other than a space, regex, or at least a ? single character wild card would be very helpful.

wordA?wordB so you could match
wordA wordB

though in most cases I'd prefer to be able to use

wordA[ _=-+.,]wordB

and of course there is telling the search to not look treat input as possible substrings

\WwordA\W \WwordB\W
NOTE "wordA" does NOT prevent matching wordAsomeotherstuff

Posts: 5
Joined: Sun Dec 23, 2012 8:51 pm
Location: Londom, UK

Re: regex (regular expresesions) support for searches

Post by greymerlin »

Ditto - I second , SECOND, double second this most excellent suggestion.

I'm pretty sure the underlying code uses regexp ( and if it don't then is should ! )

Post Reply