in reply to splitting question
Read the above, but as far as your example code, don't forget your 'g' at the end of your regexp so that you replace more than one "plus"...
Even better, just use the 'tr' function:$var =~ s/\+/ /g;
For the record, the pluses should be escaped by the browser into "%2B", and you should not have to worry about the user's pluses.$var =~ tr/+/ /;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: splitting question
by BBQ (Curate) on May 22, 2000 at 07:47 UTC | |
by merlyn (Sage) on May 22, 2000 at 21:40 UTC | |
by BBQ (Curate) on May 22, 2000 at 23:40 UTC |