Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use PCRE2 in php

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

Most people do not understand the knowledge points of this article "how to use PCRE2 in php", so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to use PCRE2 in php" article.

Description

1. Starting with PHP7.3, PCRE2 will be used as a new regular engine.

2. You need to migrate existing regular expressions to PCRE2-compliant rules. These rules are more intrusive than before.

Characteristics

Relative backward reference\ g {+ 2} (equivalent to existing\ g {- 2})

PCRE2 version check (? (VERSION > = x)...)

(* NOTEMPTY) and (* NOTEMPTY_ATSTART) tell the engine not to return an empty match

(* NO_JIT) disable JIT optimization

(* LIMIT_HEAP=d) limit heap size to d KB

(* LIMIT_DEPTH=d) set the backtracking depth limit to d

(* LIMIT_MATCH=d) set the limit on the number of matches to d

Example

Preg_match ('/ [\ wmur.] + /','); what are the php frameworks of php:

1. Laravel,Laravel is a free and open source PHP application framework.

2. Phalcon,Phalcon is the fastest PHP framework.

3. Symfony,Symfony is a PHP framework for Web projects.

4. Yii,Yii is a fast, secure and professional PHP framework.

CodeIgniter,CodeIgniter is a very agile open source PHP framework.

6. CakePHP,CakePHP is an old PHP framework.

7. Kohana,Kohana is an agile but powerful PHP framework.

The above is about the content of this article on "how to use PCRE2 in php". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report