[API Proposal]: add regex for pattern matching #8456
Replies: 3 comments 4 replies
-
This is a C# language feature and belongs to https://github.com/dotnet/csharplang/discussions. Testing |
Beta Was this translation helpful? Give feedback.
-
The problem with your proposal is, that your example is already valid code: Meaning we cannot change how the existing expression of the type |
Beta Was this translation helpful? Give feedback.
-
If we got user-defined positional patterns (active patterns), we could help ourselves to regex patterns, ignore-case patterns, and anything we could dream of. Currently championed at #4131. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Background and motivation
Hello
Can dotnet team add a feature to pattern matching to use RegEx? (with
is
keyword)API Proposal
I think there is no need to submit an API proposal
API Usage
Alternative Designs
No response
Risks
No response
Beta Was this translation helpful? Give feedback.
All reactions