Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
From wikipedia, I have a string like the following: Here are [[a variable number of words]] in brackets.
I think I'm being dense, as I can't think of a one-liner I can use to substitute the double square brackets with their contents, while at the same time replacing spaces with underscores within the brackets. In other words, I want to get Here are a_variable_number_of_words in brackets.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: substitute characters in the RHS of a search & replace
by kcott (Archbishop) on Mar 08, 2013 at 21:56 UTC | |
by Anonymous Monk on Mar 08, 2013 at 23:10 UTC | |
by LanX (Saint) on Mar 08, 2013 at 23:57 UTC | |
by AnomalousMonk (Archbishop) on Mar 09, 2013 at 19:35 UTC | |
by LanX (Saint) on Mar 09, 2013 at 20:07 UTC | |
|