What is the RegEx for finding all matches based on wildcards?
I would like a c# implementation but the regex is the hard part
Example:
- Given an input string: "extract wildcard matches from the text"
- And a pattern (using * as wildcard): "extract * from * text"
- Expected matches: "wildcard matches", "the"
Additionally, showing both case sensitivity and insensitivity would be nice.
Regex has GetMatches which gives me the matches. I can work with that as long as the matches are accurate based on the requirements.
Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire