Regular Expressions for Perl, C, PHP, Python, Java, and .NET
Regular Expression
Pocket Reference
Tony Stubblebine
Regular Expression
Pocket Reference
Regular Expression
Pocket Reference
Tony Stubblebine
Beijing Cambridge Farnham Kln Paris Sebastopol Taipei Tokyo
PHP
This reference covers PHP 4.3's Perl-style regular expression support contained within the preg routines. PHP also provides POSIX-style regular expressions, but these do not offer additional benefit in power or speed. The preg routines use a Traditional NFA match engine. For an explanation of the rules behind an NFA engine, see "Introduction to Regexes and Pattern Matching."
Supported Metacharacters
PHP supports the metacharacters and metasequences listed in Tables 31 through 35. For expanded definitions of each metacharacter, see "Regex Metacharacters, Modes, and Constructs."
Table 31. Character representations Sequence
\a \b \e \n \r \f \t \octal \xhex \x{hex} \cchar
Meaning Alert (bell), x07. Backspace, x08, supported only in character class. ESC character, x1B. Newline, x0A. Carriage return, x0D. Form feed, x0C. Horizontal tab, x09 Character specified by a three-digit octal code. Character specified by a one- or two-digit hexadecimal code. Character specified by any hexadecimal code. Named control character.
Table 32. Character classes and class-like constructs Class
[...]
Meaning A single character listed or contained within a listed range.
PHP
|
63
Table 32. Character classes and class-like constructs Class
[^...] [:class:] . \C \w \W \d \D \s \S
Meaning A single character not listed and not contained within a listed range. POSIX-style character class valid only within a regex character class. Any character except newline (unless single-line mode,/s). One byte; however, this may corrupt a Unicode character stream. Word character, [a-zA-z0-9_]. Non-word character, [^a-zA-z0-9_]. Digit character, [0-9]. Non-digit character, [^0-9]. Whitespace character, [\n\r\f\t ]. Non-whitespace character, [^\n\r\f\t ].
- fckeditorphp > orielly pocket reference - php regular expressions
-
orielly pocket reference - php regular expressions
下载该文档 文档格式:PDF 更新时间:2003-08-01 下载次数:0 点击次数:2文档基本属性 文档语言: 文档格式: pdf 文档作者: Yue 关键词: 主题: 备注: 点击这里显示更多文档属性 经理: 单位: 分类: 创建时间: 2009/05/03 16:42 上次保存者: Yue 修订次数: 编辑时间: 文档创建者: 修订: 加密标识: 幻灯片: 段落数: 字节数: 备注: 演示格式: 上次保存时间:
- 下载地址 (推荐使用迅雷下载地址,速度快,支持断点续传)
- PDF格式下载
- 更多文档...
-
上一篇:网络应用程序设计--PHP导论(MySQL篇)
下一篇:http://oircaueducn/viewen/index4php
点击查看更多关于fckeditorphp的相关文档
- 您可能感兴趣的
- fckeditorphp php调用fckeditor fckeditorphp配置 fckeditor fckeditor漏洞 fckeditor下载 fckeditor配置 fckeditor使用 fckeditor怎么用 fckeditor只读
- 大家在找
-
- · 财政国库集中支付局
- · 思想政治工作论文
- · 在cad提取柱大样
- · 成都西安火车
- · 三只蝴蝶故事教案
- · 国家级示范高中
- · 宁夏2012会计职称考试
- · outlook2010下载
- · 包头钻石钱柜ktv
- · 日语入门音频下载
- · 英才网招聘信息
- · 北京移动网上营业厅
- · 水处理设备厂家
- · 建筑电气期末考试题
- · kms200
- · 明锐dsg二档抖动
- · 中外美术史题库
- · 体积最大鹿
- · 广联达钢筋抽样教程
- · 2011大运会开幕式
- · 轴承的数据
- · cad2004win764
- · 奥迪a3图片
- · 武汉科林门业有限公司
- · cad边框尺寸
- · 交流电变直流电电路图
- · 艺术展览馆设计方案
- · 曲度腰枕治疗仪骗子
- · 计算机病毒名称
- · 湖南工学院2011新生群
- 赞助商链接