Simple find replace

Advanced Renamer forum
#1 : 28/03-16 19:34
Murilo Rodrigues
Murilo Rodrigues
Posts: 6
Hi

I Have the file "Papo De Anjo.txt" and I whant rename the first letters o each word by the botton regular expression...


In program, I typed the following, FIND: \bP(\w+) D(\w+) A(\w+)\b
REPLACE: p\1 d\2 a\3 ,but does not work, whats is wrong?

Tnx, Murilo


28/03-16 19:34 - edited 28/03-16 19:54
#2 : 28/03-16 23:02
Tester123
Tester123
Posts: 92
Reply to #1:
Hi,

Your find and replace strings work fine for me, resulting in the file "papo de anjo.txt".

Two things to check:
1) did you use the Replace Method?
2) did you tick the 'Use regular expressions' option?

Incidentally, if you are just trying to make the filename lower case, you can use the 'Case Method', with the 'Set lower case' option.


28/03-16 23:02 - edited 28/03-16 23:04
#3 : 29/03-16 02:22
Murilo Rodrigues
Murilo Rodrigues
Posts: 6
Reply to #2:

I found the problem!!!, my harddisk has BAD SECTORS and does not atualize correctly, writes to disk does not reports the error, with a caveat , AdvancedRenamer not too...

Tnx bye your cooperation.


29/03-16 02:22
#4 : 29/03-16 02:42
Murilo Rodrigues
Murilo Rodrigues
Posts: 6
Reply to #2: In advance
how would the regular expression if I had the file name as " PapoDeAnjo.txt "
same problem with caracters togheter!

Thanks again!


29/03-16 02:42
#5 : 29/03-16 19:53
joci
joci
Posts: 8
Reply to #4:
Hello
If you delete in your FIND and REPLACE strings the 2 spaces it will be oke.

FIND:\bP(\w+)D(\w+)A(\w+)\b
REPLACE:p\1d\2a\3

Sorry for my English I'am from the Netherlands



29/03-16 19:53 - edited 29/03-16 19:58
#6 : 30/03-16 23:23
Murilo Rodrigues
Murilo Rodrigues
Posts: 6
Reply to #5:

Your regex expressions help-me a lot, thanks!!!

Regards, Murilo


30/03-16 23:23