regex - Remove Everything between Round brackets in PHP? -


I want to remove round brackets and anything between them. Which RE I used? I have experimented under the code but like some languages ​​Hindi does not work for some time. Please help me anybody.

  nl2br (preg_replace ( "/ \ ([^)] + \) /", "", $ main_ary [$ y] "" ")); // ex. 4.4. 2 (KitKat) operating system // I want Android 4.4.2 on the operating system  

you can use regular expressions () ) lazy choose to leave the characters of all kinds to the first occurrence of the next character (. *? ) was.

  preg_replace ( "/\(.*?\)/"/""$$$$$$$$$$$$$$$$$$$$$% >  

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -