Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename file with no extension regex incorrect #40

Open
Scarecrow1965 opened this issue Oct 9, 2023 · 0 comments
Open

rename file with no extension regex incorrect #40

Scarecrow1965 opened this issue Oct 9, 2023 · 0 comments

Comments

@Scarecrow1965
Copy link

I have tried numerous times to use the prefix listed in this line within the document:
https://learn.microsoft.com/en-ca/windows/powertoys/powerrename

When using the variables, "Match all occurrences" must be selected.
(^\w+.$)\|(^\w+$) | $2.txt | Appends ".txt" extension to existing file name only if it does not have an extension

Your program will not accept this regex.

Using a regex editor I was able to find the correct expression:
^([^.]+)$

Therefore the correct lines of text should read:
When using the variables, "Use Regular Expressions" and "Match all occurrences" must be selected.
^([^.]+)$ | $1.txt | Appends ".txt" extension to existing file name only if it does not have an extension

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant