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

How to find (with reg expression) all files+folders with odd numbers of opening and closing brackets? #532

Open
pstein opened this issue Dec 8, 2024 · 0 comments

Comments

@pstein
Copy link

pstein commented Dec 8, 2024

I want to find (with reg expression) all files+folders with odd numbers of opening and closing brackets.

That means that the following files should be found for example:

blah blah ( one two)) end.pdf
some.other ( file name ().txt

How should a regular expression look like?

The regexp should pay attention to the sequence of opening and closing brackets too.
So the file

asfdaf ( sdg sdgfsd )) sfgg ( sgsdf.dat

has the same number of opening and closing brackets but the sequence does not fit.

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