Add a modify input Regex to the search
-
Hi Dave,
The clients customers are often inputting searches without spaces which returns nul results.
I’m wanting to add a Regex interrupt like this$subject = 'sitepoint12345demo'; $parts = preg_split('/(\d+)/', $subject, NULL, PREG_SPLIT_DELIM_CAPTURE); echo implode(' ', $parts);
but am not sure how I might create a function that would handle this
Any thoughts please?
Cheers
Brian
- The topic ‘Add a modify input Regex to the search’ is closed to new replies.