<?php $a = "this is sachinĂ¹s school of sachin"; $pattern = "sach"; if(preg_match("/[^ [:punct:]]*".$pattern."([^ [:punct:]]*)/", $a, $match)) print(mb_strlen($match[1])); ?>
You have javascript disabled. You will not be able to edit any code.