That was fast! :)

Thanks Matt

-afan

Matt M. wrote:
on one place I have string "something (something_2)"
I have to take out of the string everything in brackets and brackets as
well.
probably I will need to use Regular Expression Functions but I'm really
bad with them :)


$string = "something (something_2)";
$pattern = "/\(.*\)/";
$replacement = "";
echo preg_replace($pattern, $replacement, $string);


.


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to