Jump to content
Sign in to follow this  
michaelslamet

Another RegEx help needed

Recommended Posts

michaelslamet

I think I need help on RegEx (again) :

I would to turn

20101006152623

into

2010-10-06 15:26:23

Hopefully one day I can master this RegEx thing :)

Share this post


Link to post
Share on other sites
DXRW4E

StringRegExpReplace("20101006152623", "(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})", "$1-$2-$3 $4:$5:$6")

Ciao.

Edited by DXRW4E
  • Like 1

apps-odrive.pngdrive_app_badge.png box-logo.png new_logo.png MEGA_Logo.png

Share this post


Link to post
Share on other sites
michaelslamet

Perfect!

Thanks, DXRW4E :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×