#1 : 21/04-23 17:38 Cainan
Posts: 2
|
Hi, I have this pattern: date_username_code_sequence and want the username to come first.
Examples: 2023-04-21_User01_1226392686502063109_0.jpg would be User01_2023-04-21_1226392686502063109_0.jpg 2021-10-11_Username_here_1226392686502026109_0.jpg would be Username_here_2021-10-11_1226392686502026109_0.jpg where _ is used as separator, date, code and sequence always have the same length, but the username can change length and even include a _ on it. Can someone help me? Thanks. |
#2 : 22/04-23 08:25 David Lee
Posts: 1125
|
Replace: ^([^_]*_)(.*_)(\d*_\d*)
with: \2\1\3 Use regular expressions |
#3 : 23/04-23 17:49 Cainan
Posts: 2
|
Reply to #2:
It worked perfectly. Thanks a lot! 😄 |