PHP regular expression. If you want to match the following text, run the xxx certificate, run the 0 certificate, and run the 00 certificate. {Code...} PHP regular expression. Match the following text to run the certificate, run the xxx certificate, run the 0 certificate, and run the 00 certificate.
Php
$ Reg = '/do (...) {0, 14} Certificate/'; # do 0 certificate this cannot match? Strange things!
Reply content:
PHP regular expression. If you want to match the following text, run the xxx certificate, run the 0 certificate, and run the 00 certificate.
Php
$ Reg = '/do (...) {0, 14} Certificate/'; # do 0 certificate this cannot match? Strange things!
Note: The symbol. represents any character. Here you use three symbols (.), in addition, you use {0, 4}, indicating (...) it appears 0 to 14 times at most, that is to say, the character after it appears is a multiple of three. Therefore, 0 certificates cannot be matched.
You can try this:$ Reg = '/run (.) {} Certificate /';
If there is no limit on the number of words between the domain name and the certificate, you can simply do it like this:$ Reg = '/office (. *) Certificate /'
Agree to go upstairs and run the [^ certificate] {0, 14} Certificate/sentence. Remember that there is also a concept of laziness and greedy matching...