Posted By

burnleywallet on 05/13/11


Tagged

regexp


Versions (?)

Remove content in brackets


 / Published in: PHP
 

URL: http://stackoverflow.com/questions/1336672/php-remove-brackets-contents-from-a-string

  1. $str = trim(preg_replace('/\s*\([^)]*\)/', '', $str));

Report this snippet  

You need to login to post a comment.