I’m looking to php preg_match to break out a faceted search string.
example search input:
chevy tahoe city:seattle color:desert dune capacity:7
- search criteria: chevy tahoe
- city facet: seattle
- color facet: desert dune
- capacity facet: 7
search criteria will always be first in the input string…but the facets could be interchangeable.
Try this. It should work.
Input (
$inputvalue):Output: