Page 1 of 1

regex (regular expresesions) support for searches

Posted: Sat Jun 21, 2014 12:33 pm
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
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

Re: regex (regular expresesions) support for searches

Posted: Thu Sep 27, 2018 2:18 pm
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 ! )