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
elgwahpo
Posts: 11
Joined: Thu Jun 19, 2014 6:34 pm

regex (regular expresesions) support for searches

Post by elgwahpo » Sat Jun 21, 2014 12:33 pm

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
wordA.wordB
wordA-wordB
wordA_wordB
wordA+wordB
ect

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

wordA.*wordB
or
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

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

Re: regex (regular expresesions) support for searches

Post by greymerlin » Thu Sep 27, 2018 2:18 pm

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