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

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

c# - WPF Expander overlay used in ItemsControl -

class - Kivy: how to instantiate a dynamic classes in python -