in reply to Regex Help!
s/[^[:alpha:]]+Morrisville.*//; s/ *$//;
The first one removes Morrisville and the following together with any non-alphanumericbetic characters preceding it provided such characters exist. The second one removes the space at the end of the first name.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex Help!
by hdb (Monsignor) on Apr 18, 2013 at 07:36 UTC | |
by choroba (Cardinal) on Apr 18, 2013 at 08:09 UTC | |
by hdb (Monsignor) on Apr 18, 2013 at 08:16 UTC |