Just to be safe--

Scan from the left and save the pointer when you find a / character. Scan the entire string; that way you'll find the -last- /! One space to the right of the last / is your start-of-string.

Then scan from the -right- and find the first delimiter (. or , or whatever). One more space to the left is your end-of-string.

That eliminates any issues with names.with.extra.dots.

--Paul E Musselman

Return to Archive home page | Return to MIDRANGE.COM home page