here is my code :
<td data-label='نتیجه جستجوی کلمه مشابه'> <?php $data =
file_get_contents($row['source_link']);
$regex = '/ '.$row["word_match"].'/';
preg_match($regex,$data,$match);
var_dump($match);
echo $match[1]; ?></td>
my problem is this code only find single words in english or persian.
i need it find english plus persian and numbers and special charcheter(special charachters can be optional) in one sentence .
for example:
گوشی موبایل Samsung مدل Galaxy A15 (RAM 4) ظرفیت 128GB – سرمه ای (ویتنام)