I searched Baidu and found that many languages involve regular expressions, such as javaphpJavaScript. It is important. I watched some videos and learned a little dizzy. Is it similar in general? Cainiao
I searched Baidu and found that many languages involve regular expressions, such as java php JavaScript. It is important. I watched some videos and learned a little dizzy.
Is it similar in general?
Reply content:
Cainiao
I searched Baidu and found that many languages involve regular expressions, such as java php JavaScript. It is important. I watched some videos and learned a little dizzy.
Is it similar in general?
Basically, the rules are the same, but they are used differently. after all, the language features are different.
There are two different forms. The following is a summary, but some features are not supported in different languages.
Http://zonxin.github.io/post/2015/08/regular-expression-cheetsheet
All the languages you listed support regular expressions in the PCRE format. another common format is the POSIX format, which is supported by older PHP versions.
Of course, there are also minor differences between the PCRE sects. you can learn either of them, and check the document again when there are differences. If you are interested, read the regular expression guide book, which summarizes and compares the implementation of regular expressions in different programming languages in detail.