We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be very cool to add the ability to use alternatives in the glob and match patterns.
Syntax of alternatives can be any:
(alt1|alt2|alt3)
(alt1,alt2,alt3)
{alt1|alt2|alt3}
{alt1,alt2,alt3}
Please look at code example:
package main import ( "fmt" "path/filepath" ) func main() { fmt.Println(filepath.Match("/home/dir/*.(txt,pdf)", "/home/dir/resume.txt")) fmt.Println(filepath.Match("/home/dir/*.(txt,pdf)", "/home/dir/resume.png")) }
Output:
true <nil> false <nil>
I apologize if I'm suggesting something that has already been suggested. As it seemed to me, I looked for references, but did not find.
The text was updated successfully, but these errors were encountered:
Duplicate of #32745
Sorry, something went wrong.
No branches or pull requests
It would be very cool to add the ability to use alternatives in the glob and match patterns.
Syntax of alternatives can be any:
(alt1|alt2|alt3)
(alt1,alt2,alt3)
{alt1|alt2|alt3}
{alt1,alt2,alt3}
Please look at code example:
Output:
The text was updated successfully, but these errors were encountered: