From: Brian Adkins Date: 2007-10-28T10:25:04+09:00 Subject: Re: convert string format On Oct 27, 7:10 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 Just out of curiosity, why do you want to use regular expressions to solve this? Don't you just want to insert two '/' characters in the appropriate place? "20070801".insert(4,'/').insert(7,'/')