in reply to regex: seperating parts of non-formatted names
Check out Lingua::EN::NameParse.
From the docs:
This module takes as input a person or persons name in
free format text such as,
Mr AB & M/s CD MacNay-Smith and attempts to parse it. If successful, the name is broken down into components and useful functions can be performed such as :
If the name cannot be parsed you have the option of cleaning the name of bad characters, or extracting any portion that was parsed and the portion that failed. |
In Section
Seekers of Perl Wisdom