in reply to Extracting names from string
($reversed_name) = $string =~ m!/(.*?)\|!;
The perlre and perlop help files give more details on regular expressions.
Update: Escaped the |.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Extracting names from string
by Random_Walk (Prior) on Feb 08, 2005 at 16:30 UTC | |
|
Re^2: Extracting names from string
by Anonymous Monk on Feb 08, 2005 at 16:10 UTC | |
by ikegami (Patriarch) on Feb 08, 2005 at 16:26 UTC |