Re: Prepend + to search words
- From: emailgrant@xxxxxxxxx (Grant)
- Date: Thu, 29 Mar 2007 11:09:35 -0700
> 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?
Hi Tom,
I just had a look at some docs matching "perl substitution variable"
since the words in the string could be anything, but perl docs have a
way of overwhelming me really quickly. Can you show me how?
- Grant
.
- Follow-Ups:
- Re: Prepend + to search words
- From: John W. Krahn
- Re: Prepend + to search words
- References:
- Prepend + to search words
- From: Grant
- Re: Prepend + to search words
- From: Tom Phoenix
- Prepend + to search words
- Prev by Date: Re: sending output to file and terminal
- Next by Date: RE: Exiting loops
- Previous by thread: Re: Prepend + to search words
- Next by thread: Re: Prepend + to search words
- Index(es):
Relevant Pages
|