<?php $text = "+!This is a text with some % special chars/text and ( for a string query to match. Then !! mor&&&e and so on...chars/text."; $stringToFind = "hars/t"; preg_match('~.{10}' . preg_quote($stringToFind) . '.{10}~', $text, $match); print_r($match);
You have javascript disabled. You will not be able to edit any code.