is it possible to form with the .net Regex class backtracking expressions?
is it for example possible, creating a regex which forms braces like in arithmetic formulars? like it would accept ( ), ( ( ) ((()())), but not ((, (()(), ()))?
Yes, it is possible, but it's not called backtracking.
You're looking for Balancing Group Definitions .
Backtracking is completely different.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.