📄 group.php-43.htm
字号:
<html>
<head>
<meta content="text/html; charset=gb2312" http-equiv=Content-Type>
<title>正则表达式函数库</title>
<style type="text/css">
a {text-decoration: none;color:#6666ff;}
a:hover {color:#ff0000;}
</style>
</head>
<body bgcolor=ffffff leftmargin=0 topmargin=0 marginheight=0 marginwidth=0>
<p>
<div align=center><table border=0 width=70%><tr>
<td valign=middle width=20><hr size=1 width=100%></td>
<td valign=middle nowrap><font color=e06060 size=+2><b>正则表达式函数库</b></font></td>
<td valign=middle width=100%><hr size=1 width=100%></td>
</tr></table></div><p>
<div align=center><table border=0 width=70%><tr><td>
<div align=right>本函数库共有 6 个函数</div><p><table border=0 cellpadding=12 cellspacing=0><tr><td bgcolor=e0e0ff>关于正则表达式 (Regular expression),似乎译成:字符串解析处理,较合乎字面上的意义。但目前所有的相关书籍都译成正则表达式或是正规表示法....等等,实际上是负责字符串解析比对,并对字符串做相关的处理。
<p> 本函数库让 PHP 也能处理复杂的字符串操作。它采用了 POSIX 1003.2 的扩充常规处理 (regular expression)
的标准。更多关于正则表达式的信息可以参考 UNIX Shell、Perl 或是 awk 等相关的书籍。网络上也有张耀仁先生所作的<a href="http://main.rtfiber.com.tw/%7Echangyj/regex/" tppabs="http://main.rtfiber.com.tw/~changyj/regex/">正规表示式的入门与应用</a>文章。
</td></tr></table><p>
<table border=0 width=100%><tr><td align=right valign=top><a href="function.php-ereg.htm" alt="function.php?ereg">ereg</a>:</td><td valign=top>字符串比对解析。</td></tr>
<tr><td align=right valign=top><a href="function.php-ereg_replace.htm" alt="function.php?ereg_replace">ereg_replace</a>:</td><td valign=top>字符串比对解析并取代。</td></tr>
<tr><td align=right valign=top><a href="function.php-eregi.htm" alt="function.php?eregi">eregi</a>:</td><td valign=top>字符串比对解析,与大小写无关。</td></tr>
<tr><td align=right valign=top><a href="function.php-eregi_replace.htm" alt="function.php?eregi_replace">eregi_replace</a>:</td><td valign=top>字符串比对解析并取代,与大小写无关。</td></tr>
<tr><td align=right valign=top><a href="function.php-split.htm" alt="function.php?split">split</a>:</td><td valign=top>将字符串依指定的规则切开。</td></tr>
<tr><td align=right valign=top><a href="function.php-sql_regcase.htm" alt="function.php?sql_regcase">sql_regcase</a>:</td><td valign=top>将字符串逐字返回大小写字符。</td></tr>
</table><p><hr size=1><br>如果你对此手册有任何问题,请到下面网址提问: <a href="www.web745.com">WEB开发知识库</a> (<a href="http://www.web745.com">www.web745.com</a>)<p>
</td></tr></table></div>
<p>
<div align=center>
<table border=0>
<tr>
<td>[ <a href="group.php-42.htm" alt="group.php?42">上一页</a>
</td>
<td> <a href="group.php-44.htm" alt="group.php?44">下一页</a>
]</td>
</tr>
</table>
</div><p><br><br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -