From: Brian Adkins Date: 2007-10-28T15:00:01+09:00 Subject: Re: convert string format On Oct 28, 12:12 am, "ara.t.howard" wrote: > On Oct 27, 2007, at 5:15 PM, Junkone wrote: > > > Hello > > I have a date like 20070801 in a string. how do i change it to > > 2007/08/01 using regex > > thanks > > using regexen for that's suicide unless you want to accept invalid > time strings. Good point, but with a format like "20070801", there's a good chance this is not user input, but serialized data that's already been parsed/ validated and just needs to be formatted.