Regular expression and poor

zhaozj2021-02-16  58

Speaking of regular expressions, saying happening, using headaches. It is more uncomfortable than Perl's grammar. For example: To match the expression like (A (A A) (a)), what do you think of using regex? (?> (? <= / (? / () (? = [A-za-z_] | / () | (? <= [0-9a-za -Z_] | /)) (? /)) (? = [ ] | /) | / Z) | (? <= / (| [ ] | / A) (? (? [a-za-z _] (?: [0-9a-za-z _]) *)) (? = /) | [ ] | / z) | (? <= /) | 0-9A-ZA-Z_]) (? [ ]) (? = / (| [A-za-z _]))

Of course, like hackers like Perl, there are also cattle people like regular expressions: What is my NFAGEN2 to do? Lowless procedural cattle is also always:

http://en.wikipedia.org/wiki/有限状态自动

转载请注明原文地址:https://www.9cbs.com/read-18944.html

New Post(0)