首页|正则表达式在PHP中的应用

正则表达式在PHP中的应用

扫码查看
PHP是目前流行的WEB应用程序开发技术,而正则表达式为字符串模式匹配提供了一种高效、方便的方法。通过正则表达式,能够简单、灵活地验证用户提交的字符串是否满足规定的要求。首先介绍了正则表达式的基本概念,然后对PREL兼容语法的正则表达式及重要函数加以说明,最后结合实例论述了正则表达式在PHP程序的字符串匹配校验中的应用。
Principle and Realization of PHP Calendar
PHP is a popular WEB application development technology,and the regular expression as a string pattern matching provides an efficient and convenient way. Through the regular expression,able to verify the user submits the simple,flexible string whether meet the requirements of regulations. This paper first introduces the basic concepts of regular expressions,and then to PREL compatible syntax of regular expressions and important function,finally discusses the regular expression in the PHP program based on examples of application of string matching check.

PHPregular expressionWEB

李斌

展开 >

国营第七八五厂第一研究所,太原 030024

PHP 正则表达式 WEB

2015

电脑开发与应用
中国北方自动控制技术研究所

电脑开发与应用

影响因子:0.265
ISSN:1003-5850
年,卷(期):2015.(3)
  • 1
  • 2