The problem of finding a regular expression

re.findall ("[u4E00-u9FFF | () ()] {5jue 20} Co., Ltd. | [u4E00-u9FFF | () ()] {5jue 20} Co., Ltd.)

["Insurance brokerage companies may use limited liability companies or joint stock limited companies")
["Insurance brokerage companies may use limited liability companies or joint stock limited companies"]

you can"t have a "limited liability company" at the same time. "Why is there not a" | "or only one match here?


a | b does not mean that it can only match an or b, but can match strings containing a, b, and ab. It is more troublesome to use indexOf to match an expression with only one ab in a string.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e47969-44c46.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e47969-44c46.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?