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