PHP Developers Network
http://forums.devnetwork.net/

regex to rearrange string
http://forums.devnetwork.net/viewtopic.php?f=38&t=143087
Page 1 of 1

Author:  bennyutzer [ Wed Oct 26, 2016 10:45 am ]
Post subject:  regex to rearrange string

hi there,

i have a basic knowledge of regex, but i came across a problem that exceeded my skills. i have a string like this:

Syntax: [ Download ] [ Hide ]
[AB] SomeText (26-10-2016)


and using regex i want to transform it to:

Syntax: [ Download ] [ Hide ]
[AB] 2016.10.26 - SomeText


is that possible? what regex command could i use for this?

greetz

Author:  requinix [ Wed Oct 26, 2016 12:30 pm ]
Post subject:  Re: regex to rearrange string


Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/