You are not logged in.
Hi and thank you for this incredible program, very useful.
My issue is this : Remove English characters from the middle of two sets of numbers
For example:"2019-1-22 ground tube 001.docx”
my goal:"2019-1-22 001.docx”
Is there an easier way to do it?
Thanks in advance
Jeff
Offline
Hi and welcome!
Sounds like Strip rule
http://www.den4b.com/wiki/ReNamer:Rules:Strip
could be what you're looking for?
Read the *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)
Offline
Hi and welcome!
Sounds like Strip rule
http://www.den4b.com/wiki/ReNamer:Rules:Stripcould be what you're looking for?
Hi Stefan,
Thank you.
Maybe my example is inappropriate, i want to do this:
origin file name:
0.0014 inch precision ground tube 0.0014 inch ground tube.docx
0.0018 inch raw tube 0.0018 inch tube.docx
HX outer package box HX package box.docx
...etc.
rename to:
0.0014 inch precision ground tube.docx
0.0018 inch raw tube.docx
HX outer package box.docx
...etc.
It is a little difficult to use Strip rule.
Last edited by jeffli (2019-01-22 15:42)
Jeff
Offline
We need to find an common "anchor point".
So. always remove from the second found number till the end?
Read the *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)
Offline
We need to find an common "anchor point".
So. always remove from the second found number till the end?
for example:
"0.0018 inch raw tube 0.0018 inch tube.docx" rename to "0.0018 inch raw tube.docx"
"HX outer package box HX package box.docx" rename to "HX outer package box.docx"
I always remove words from second "0.0018" or "HX".
Jeff
Offline
Try that:
FROM:
0.0014 inch precision ground tube 0.0014 inch ground tube.docx
0.0018 inch raw tube 0.0018 inch tube.docx
HX outer package box HX package box.docx
TO:
0.0014 inch precision ground tube.docx
0.0018 inch raw tube.docx
HX outer package box.docx
USE:
Regular Expressions (http://www.den4b.com/wiki/ReNamer:Rules:RegEx)
Expression "^(.+)#(0\.|HX).+$"
Replace with "$1"
(skip extension), maybe check (case-sensitive) too
NOTE: instead of hash-sign #, enter a blank space.
Explanation:
^ >>>>>> Start at the beginning
(.+) >>> Match one-ore-more of any sign and capture for re-use, untill...
#(0\.|HX).+$ >>>> Space, followed by 0. or HX and the rest till the end
$1 >>>> Replace whit what was captured by first (...) capture group
See http://www.den4b.com/wiki/ReNamer:Regular_Expressions for more....
works?
Read the *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)
Offline
Try that:
FROM:
0.0014 inch precision ground tube 0.0014 inch ground tube.docx
0.0018 inch raw tube 0.0018 inch tube.docx
HX outer package box HX package box.docxTO:
0.0014 inch precision ground tube.docx
0.0018 inch raw tube.docx
HX outer package box.docxUSE:
Regular Expressions (http://www.den4b.com/wiki/ReNamer:Rules:RegEx)Expression "^(.+)#(0\.|HX).+$"
Replace with "$1"
(skip extension), maybe check (case-sensitive) tooNOTE: instead of hash-sign #, enter a blank space.
Explanation:
^ >>>>>> Start at the beginning
(.+) >>> Match one-ore-more of any sign and capture for re-use, untill...
#(0\.|HX).+$ >>>> Space, followed by 0. or HX and the rest till the end
$1 >>>> Replace whit what was captured by first (...) capture groupSee http://www.den4b.com/wiki/ReNamer:Regular_Expressions for more....
works?
Hi Stefan,
It works, thank you for your help, very good Regular Expressio.
Jeff
Offline