I want to find the index of the pattern from the string and find all Unicode characters like "\u2026","\u2021","\u2011" and so on.
Below is the code snippet I am currently using. But it is resulting in else situation.
if(preg_match('/[\\^]u[0-9]{4}/gi',$data['title'],$matches,PREG_OFFSET_CAPTURE)){
print_r($matches);
}
else{
echo "Not Found";
}
Thanks.