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

This mailing list archive is Copyright 1997-2015 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact