Skip to content
Advertisement

Tag: matching

Decomposing a string into words separared by spaces, ignoring spaces within quoted strings, and considering ( and ) as words

How can I explode the following string: into I would like to extend the boolean fulltext search SQL query, adding the feature to specify specific columns using the notation column:value or column:”valueA value B”. How can I do this using preg_match_all($regexp, $query, $result), i.e., what is the correct regular expression to use? Or more generally, what would be the most

Advertisement