Maximum 8 characters

A swapping-ground for Regular Expression syntax

Maximum 8 characters

Postby acaderc » Tue Jul 07, 2015 2:29 am

Hi, I want to modify a lot of files and I need that all of them have only 8 character.
How can I do?
Thanks a lot for your reply,
Regards
acaderc
 
Posts: 2
Joined: Tue Jul 07, 2015 2:15 am

Re: Maximum 8 characters

Postby Stefan » Tue Jul 07, 2015 5:56 pm

acaderc wrote: I need that all of them have only 8 character.


Are you sure? :roll:

Try

RegEx(1)
Match: (.{8}).*
Repla: \1

Menu > Options > Prevent Duplicates


 
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU

Re: Maximum 8 characters

Postby acaderc » Tue Jul 07, 2015 8:59 pm

Stefan wrote:
acaderc wrote: I need that all of them have only 8 character.


Are you sure? :roll:

Try

RegEx(1)
Match: (.{8}).*
Repla: \1

Menu > Options > Prevent Duplicates


 


I only need that the 256 files that I have, get exactly 8 character, no more no less. Can I do it?
For example:
00000000
00000001
00000002
.
.
.
00000256
Can I do it?
Thanks and sorry for my bad english.
acaderc
 
Posts: 2
Joined: Tue Jul 07, 2015 2:15 am

Re: Maximum 8 characters

Postby Stefan » Wed Jul 08, 2015 5:53 pm

acaderc wrote:I only need that the 256 files that I have, get exactly 8 character, no more no less. Can I do it?
For example:
00000000
00000001
00000002
.
.
.
00000256
Can I do it?


Use
File(2) > Name : Remove
Numbering(10) > Mode : Prefix +++> Start : 0 +++> Pad : 8



 
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU


Return to Regular Expressions


cron