preg_replace

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alessandro Trebbi

    preg_replace

    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?


Working...