Regular expressions drive me crazy! I have a perl string variable that comes from a cgi form. I need code to remove one or more leading or trailing spaces without removing internal spaces. Please help! Jim Schueckler