, , , , , .
, , . , Regex.Match(), , , .
, (, '{' '}', , ( , , ). , , .
Of course, this will only work with simple search and search markers. The more complex ones will require something more complex, such as a regular expression. Perhaps you can extend TokenDefinition to indicate if the match is simple or regular. This will reduce the number of regular expressions that are executed, but at the same time retain the necessary flexibility.
source
share