by Stefan » Mon Jan 19, 2015 8:37 am
One possible way would be:
FROM
Word word 01x Z - varaible_word (possible other words).txt
Word word 01x ZZ - varaible_word (possible other words).txt
Word word 01x ZZZ - varaible_word (possible other words).txt
TO:
Word word 01x 00Z - varaible_word (possible other words).txt
Word word 01x 0ZZ - varaible_word (possible other words).txt
Word word 01x ZZZ - varaible_word (possible other words).txt
USE 1.):
RegEx(1)
Match:(.+x )(.+)( - .+)
Repla:\100\2\3
[RENAME]
to get:
Word word 01x 00Z - varaible_word (possible other words).txt
Word word 01x 00ZZ - varaible_word (possible other words).txt
Word word 01x 00ZZZ - varaible_word (possible other words).txt
Explanantion:
Match 'anything till x + space' as \1,
then anything as \2
till 'space hyphen space and the rest' as \3.
Add as many zeros as wanted.
- - -
Then USE 2.):
RegEx(1)
Match:(.+x )(.+)(...)( - .+)
Repla:\1\3\4
[RENAME]
to get the wanted:
Word word 01x 00Z - varaible_word (possible other words).txt
Word word 01x 0ZZ - varaible_word (possible other words).txt
Word word 01x ZZZ - varaible_word (possible other words).txt
Explanantion:
Match 'anything till x + space' as \1,
then anything as \2 till
the last three signs from that anything as \3
till 'space hyphen space and the rest' as \4.
Done.