Skip to content

PowerRename Regex skipping file that should be matched #31950

Open
@04alband

Description

Microsoft PowerToys version

0.79.0

Installation method

PowerToys auto-update

Running as admin

No

Area(s) with issue?

PowerRename

Steps to reproduce

See screenshots. I'm renaming a bunch of images to change and fix their sequence number. Some of the original files end with " (2)". You can see I have a wildcard in the regex to optionally match that. This works, except for the first file that doesn't have the " (2)". I tried the same regex on https://regex101.com/ with the EMCAScript flavor and it should match.
image
I tried manually renaming that file to remove the " (2)". After then, the next file became the issue - i.e. the file that was NOW the first one without the " (2)".
image

✔️ Expected Behavior

All files matching the regex should be matched.

❌ Actual Behavior

See screenshots. The first file matching a different 'branch' of the regex is not matched.

Other Software

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugSomething isn't workingProduct-PowerRenameRefers to the PowerRename PowerToyStatus-ReproducibleThis issue was reproduced by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions