Jump to content
UBot Underground

Having trouble with regular expression, please help


Recommended Posts

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!

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...