I need to take a string, and delete part of it that are far from a pattern
It's for a search engine, i want to mantain only the part of the strings
that are around the query
how can i do this through a regular expression and filter the string with
preg_replace?
It's for a search engine, i want to mantain only the part of the strings
that are around the query
how can i do this through a regular expression and filter the string with
preg_replace?