I\'m trying to do
$str = "Example - sentence / trying to escape special-characters"; $pattern = \'/(\\s)[^A-Za-z0-9](\\s)|[^A-Za-z0-9\\-\\s]|(\\s)[^