jx05 0 Posted May 21, 2012 Report Share Posted May 21, 2012 Hi, I am new to regular expression, but in Ubot 4, I was trying to process a piece of text, for example: The sky (is blue, leaves are green) and the (wind) is blowing I want to replace all texts in the brackets with something like ***, so the new text will look like this: The sky *** and the *** is blowing I use replace regular expression, and the regular expression is \(.*\), however, the result is: The sky *** is blowing apparently, the regular expression only recognize the very first opening bracket ( and the very last closing bracket ), everything between them are replaced with ***. What regular expression should I use to correct the mistake? I am totally confused, any help would be appreciated! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.