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