Support escaping special characters
See original GitHub issueCharacters like {
, }
, ,
, !
,[
,]
are valid file path names. To match path containing these special symbols, glob pattern need to support escape using \
. In this case, \[
should match [
instead of throwing an error.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Escaping special characters
Lucene supports escaping special characters that are part of the query syntax. To escape a special character, precede the character with a backslash...
Read more >Escaping, special characters
To use a special character as a regular one, prepend it with a backslash: \. . That's also called “escaping a character”. For...
Read more >Escaping special characters
This article describes how to escape special characters when using WinAutomation for text manipulation.
Read more >avoid to escape a special characters in javascript
My server returns value as support\testing . When I get this value in client it can be escaped as support testing . \t...
Read more >How to escape Reserved Characters, in an Activity
When entering Notes with certain special characters, the special character is getting converted into its escape character sequence.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I just released a build that may help. It adds support for all characters that are not special to globbing syntax as part of issue #57
My plan is to add support for escaping characters by using
\
which is currently used for a secondary path separator. Since this may break many existing glob expressions this will be part of a 2.0 release.Hello @yufeih, it has been a while since I have updated this ticket. If you would like to take a look at beta version with this feature you can find it here: https://www.nuget.org/packages/Glob/1.2.0-alpha0029