Community Patterns

Community Library Entry

3

Regular Expression
Created·2015-10-01 01:47
Flavor·PCRE (Legacy)

/
^(?:[<>~+-]?\((?:(?:[<>~+-]?[\w][\w-]+[*]?|"[^"]+")(?:\s+(?:[<>~+-]?[\w][\w-]+[*]?|"[^"]+"))+)\)|[<>~+-]?[\w][\w-]+[*]?|"[^"]+")(?:\s+(?:[<>~+-]?\((?:(?:[<>~+-]?[\w][\w-]+[*]?|"[^"]+")(?:\s+(?:[<>~+-]?[\w][\w-]+[*]?|"[^"]+"))+)\)|[<>~+-]?[\w][\w-]+[*]?|"[^"]+"))*$
/
Open regex in editor

Description

Checks if an input string is compatible with the BOOLEAN mode of MySQL full text search system

Submitted by greezybacon