Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi there!!!
How can I parse this string
name+C.+city+loc.+loc2+++++++++++++++++++++++++++++++++++++B+++v+G+++
using regular expression and get just this:
name+C.+city+loc.+loc2
Is not working, any help, please??$_=~ s/(w*\+{1}).*$/$1/g;
janitored by ybiC: Retitle from "Regular Exp.", minor formatting cleanup
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parse string for fields
by snax (Hermit) on Oct 08, 2003 at 21:28 UTC | |
|
Re: Parse string for fields
by shenme (Priest) on Oct 08, 2003 at 21:28 UTC | |
|
Re: Parse string for fields
by NetWallah (Canon) on Oct 08, 2003 at 21:43 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |