Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public IMatch Match(string inputTextValue)
- {
- string result = String.Copy(inputTextValue);
- foreach (var presentPattern in currentPatterns)
- {
- var match = presentPattern.Match(result);
- if (!match.Success())
- {
- return new Match(inputTextValue, false);
- }
- result = match.RemainingText();
- }
- return new Match(result, true);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement