Powertoys: PowerRename no longer works with regular expressions

Created on 6 Dec 2019  Â·  7Comments  Â·  Source: microsoft/PowerToys

Escribo en el cuadro de búsqueda (.*) y en el de reemplazar $1_0 (porque quiero que le agregue "_0" al final) y en la vista preliminar sale $1_0.pdf, por ejemplo.

unnamed

Issue-Bug Issue-Docs Product-PowerRename Resolution-Fix-Committed

Most helpful comment

1001 fixes the docs. you need to have "Matching" enabled.

All 7 comments

Translated: I type in the search box (.*) and in the replace $1_0 (because I want you to add "_0" at the end) and in the preview comes out $1_0.pdf, for example.

Did you check "Use Regular Expressions" in the options?

Hola.

Si, he hecho eso. Adjunto una captura de pantalla como ejemplo. Es en la
version 0.14.1.

[image: image.png]

El vie., 6 de dic. de 2019 a la(s) 12:21, Chris Davis (
[email protected]) escribió:

Translated: I type in the search box (.*) and in the replace $1_0 (because
I want you to add "_0" at the end) and in the preview comes out $1_0.pdf,
for example.

Did you check "Use Regular Expressions" in the options?

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/PowerToys/issues/881?email_source=notifications&email_token=AKQQS2MDR74H27DQX2ZMXM3QXKJ4JA5CNFSM4JWZMEZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGE56XI#issuecomment-562683741,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKQQS2O25EH6CNUET2KDUBDQXKJ4JANCNFSM4JWZMEZA
.

--
Sígueme en twitter @navairas http://www.twitter.com/navairas/ o se mi
amigo en Facebook http://www.facebook.com/navairas/.
Ulises Santiago Ponce Inc 2015, todos los derchos reservados.
Amén.

I think a better title would be: Capture groups no longer work in PowerRename

As I am also unable to use them in 0.14.1.0

1001 fixes the docs. you need to have "Matching" enabled.

@chrdavis, for being able to do the replacement, do you need the "Matching" checked?

While checking "Match All Occurrences" works, and adding this to the docs is helpful, it is still very much unclear WHY you should check "Match All Occurrences". Besides, I might still want to be able to use capturing groups for the first occurrence.

For example, if I want to replace the second word in my files to its first letter I might want to do this:
image

Checking match all would replace all words after a space with its first letter:
image

It's still possible to do what I want of course, even with match all checked, but the current behavior is strange.

@crutkas
can you take a look at @mrwensveen question? Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

patware picture patware  Â·  3Comments

smz picture smz  Â·  3Comments

CombeeMike picture CombeeMike  Â·  3Comments

saahmedm picture saahmedm  Â·  3Comments

verglor picture verglor  Â·  3Comments