Page 1 of 1

How to detele filename and left numbers only

PostPosted: Fri Aug 18, 2017 5:23 am
by enderangel
I am trying to delete all those chinese words on the filename and left number on only, how can i do that? I can't because the words behind the numbers are not the same, thx

http://imgur.com/a/mITbn

Re: How to detele filename and left numbers only

PostPosted: Fri Aug 18, 2017 11:17 am
by KenP
This will leave only the numbers, for instance ???? -62????.txt

RegEx (1)
Match: [^\d](\d+).[^\d]
Replace: \1



This will leave only the characters A to Z and/or a to z, for instance ???? -SP????.txt

RegEx (1)
Match: [^A-Za-z]([A-Za-z]+)[^A-Za-z]
Replace: \1

Re: How to detele filename and left numbers only

PostPosted: Sat Aug 19, 2017 9:54 am
by enderangel
omg it works, thx bro