Re: Prepend + to search words
- From: tom@xxxxxxxxxxxxxx (Tom Phoenix)
- Date: Thu, 29 Mar 2007 10:59:27 -0700
On 3/29/07, Grant <emailgrant@xxxxxxxxx> wrote:
Hello, how can I prepend a "+" character to each of the words in a
string? For example, "big blue widgets" should be changed to "+big
+blue +widgets".
I'd probably use an s/// (substitution) on the string. Match a word,
replace it with the plus sign and the word. Have you tried that?
Cheers!
--Tom Phoenix
Stonehenge Perl Training
.
- Follow-Ups:
- Re: Prepend + to search words
- From: Grant
- Re: Prepend + to search words
- References:
- Prepend + to search words
- From: Grant
- Prepend + to search words
- Prev by Date: Re: To Reference or not to reference
- Next by Date: Re: sending output to file and terminal
- Previous by thread: Prepend + to search words
- Next by thread: Re: Prepend + to search words
- Index(es):