[英]How to make regular expressions in PHP?
How to make regular expression in PHP? 如何在PHP中进行正则表达式? Can anyone guide me to the basic rules to make regular expressions? 谁能指导我做正则表达式的基本规则?
http://php.net/manual/en/function.preg-match.php http://php.net/manual/zh/function.preg-match.php
http://php.net/manual/en/function.preg-replace.php http://php.net/manual/zh/function.preg-replace.php
php.net in general has the entire documentation for the php language. php.net通常包含php语言的完整文档。 It's probably one of the more valuable resources available. 它可能是可用的更有价值的资源之一。
You will get basic details of expression content here 您将在此处获得表达式内容的基本详细信息
Table 1. Common regex operators 表1.常见的正则表达式运算符
for more details use following link Mastering regular expressions in PHP 有关更多详细信息,请使用以下链接掌握PHP中的正则表达式
A good start would be the PHP manual for regular expressions: 一个很好的开始是用于正则表达式的PHP手册:
Regular Expressions (Perl-Compatible) 正则表达式(与Perl兼容)
There are three major use cases for regular expressions: 正则表达式有三种主要用例:
请参阅PHP的PCRE函数书 ,特别是有关PCRE模式语法的章节。
Here are a couple tutorials on using regular expressions in PHP that will get you started: 这里有一些关于在PHP中使用正则表达式的教程,可以帮助您入门:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.