sub() has practical uses though gsub() may have more. This function was what I needed at the time. Of course the gsub() version is also possible. Sent from Yahoo Mail on Android [[alternative HTML version deleted]]