Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
d_badboy каза:if (substr($text,-1)=="/") $text = substr($text,1,-1);
<?php
$string = "adrian1990[]_----)"
preg_match('/^[a-z0-9]+/i', $string, $matches);
echo "<pre>";
print_r($matches);
$test = "asd test/'' qwe"; // 2 единични кавички вътре
$test = preg_replace("#(.*?)([a-z0-9]+)([\/\']+)(.*?)#i","$1$2$4",$test);
// резултат: asd test qwe