Yes, unless they are in a tight row (no holes): then you would simply start with a new offset e.g. File<#11>.txtguster wrote:"... say we have a bunch of files:
File10.txt, File11.txt, File12.txt, File13.txt, File14.txt "
The following is based on zacky's examples:
you do: File(<[0-9]+)\.txt>Files$1<+>.txt
you get: File11.txt, File12.txt, File13.txt, File14.txt, File15.txt
I have t1 through t16 in a bunch of directories. For some directories I need to ratchet t#-end forward or backward. Other trials in the series, and the rest of the directory (some other series' and individual files) should remain as is. This will require regexp, right?
Regexp "counters"
-
admin
- Site Admin
- Posts: 66249
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
-
jacky
- XYwiki Master
- Posts: 3106
- Joined: 23 Aug 2005 22:25
- Location: France
- Contact:
hehe... well my regexp counters were a bit more powerfull, as in they could use a number on the files and do maths operations on themadmin wrote:So, jacky, what do you think of your regexp counters now? Are you still missing it a lot?
But honestly, no I don't miss them (that much) anymore.
Proud XYplorer Fanatic
-
guster
- Posts: 13
- Joined: 18 Jul 2006 21:48
I renamed t3 to tp3 manually. Then, in batch rename, I tried:admin wrote:Yes, unless they are in a tight row (no holes): then you would simply start with a new offset e.g. File<#11>.txtguster wrote:"... say we have a bunch of files:
File10.txt, File11.txt, File12.txt, File13.txt, File14.txt "
The following is based on zacky's examples:
you do: File(<[0-9]+)\.txt>Files$1<+>.txt
you get: File11.txt, File12.txt, File13.txt, File14.txt, File15.txt
I have t1 through t16 in a bunch of directories. For some directories I need to ratchet t#-end forward or backward. Other trials in the series, and the rest of the directory (some other series' and individual files) should remain as is. This will require regexp, right?
t<#4-#17>.asc = t3.asc
with t4.asc through t17.asc highlighted. The output form: t00004.asc = t3.asc
Will you please show me the syntax to get t3.asc --- t16.asc. Thank you.
-
guster
- Posts: 13
- Joined: 18 Jul 2006 21:48
moving to tips & tricks; sorry
I appologize. I reposted to tips and tricks because my technical question is more appropriate there. Thanks for your understanding and for considering my technical syntax query.
-
admin
- Site Admin
- Posts: 66249
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Answer: http://www.xyplorer.com/xyfc/viewtopic.php?p=7561#7561guster wrote:I renamed t3 to tp3 manually. Then, in batch rename, I tried:admin wrote:Yes, unless they are in a tight row (no holes): then you would simply start with a new offset e.g. File<#11>.txtguster wrote:"... say we have a bunch of files:
File10.txt, File11.txt, File12.txt, File13.txt, File14.txt "
The following is based on zacky's examples:
you do: File(<[0-9]+)\.txt>Files$1<+>.txt
you get: File11.txt, File12.txt, File13.txt, File14.txt, File15.txt
I have t1 through t16 in a bunch of directories. For some directories I need to ratchet t#-end forward or backward. Other trials in the series, and the rest of the directory (some other series' and individual files) should remain as is. This will require regexp, right?
t<#4-#17>.asc = t3.asc
with t4.asc through t17.asc highlighted. The output form: t00004.asc = t3.asc
Will you please show me the syntax to get t3.asc --- t16.asc. Thank you.
XYplorer Beta Club