I am using following which only replaces first [Description.
db_text = db_text.gsub("[Description: Description: Description:
Description: Description: Description: Description: Description:
Description: Description: Description:","")
Not sure where and what to put for wild card search.
What is it exactly that you want to replace? Can you show from the
example text above, what would be your required output? And also, in
other texts that you will process, what will vary from one to another,
only what is after the @?
Jesus.
···
On Wed, Feb 26, 2014 at 2:18 AM, Chirag Jhaveri <lists@ruby-forum.com> wrote:
Hi,
I am very new to Ruby.
I have a script to remove unwanted text from Spiceworks (Ticketing
system).
For that, I need to do a wild card search on a string and replace a
particular text block.
I am using following which only replaces first [Description.
db_text = db_text.gsub("[Description: Description: Description:
Description: Description: Description: Description: Description:
Description: Description: Description:","")
Not sure where and what to put for wild card search.