in reply to Re: Extract firstname and lastname from variablein thread Extract firstname and lastname from variable
/^([A-Z][a-z]+)([A-Z]+)?([A-Z][a-z]+)?$/ # stored in $1, $2, $3 [download]
FooBBBBar FooBar Foo [download]