If you switch to PCRE world functions note that pcre doesn't support UTF-8 well.
There are limitations - read "POSIX CHARACTER CLASSES" or "UNICODE CHARACTER PROPERTY SUPPORT" chapter at http://www.pcre.org/pcre.txt.
正規表現 (POSIX 拡張)
- 導入
- インストール/設定
- 定義済み定数
- 例
- POSIX 正規表現関数
- ereg_replace — 正規表現による置換を行う
- ereg — 正規表現によるマッチングを行う
- eregi_replace — 大文字小文字を区別せずに正規表現による置換を行う
- eregi — 大文字小文字を区別せずに正規表現によるマッチングを行う
- split — 正規表現により文字列を分割し、配列に格納する
- spliti — 大文字小文字を区別しない正規表現により文字列を分割し、配列に格納する
- sql_regcase — 大文字小文字を区別しないマッチングのための正規表現を作成する
arekm
04-Dec-2011 11:23
Ray dot Paseur at Gmail dot com
28-Oct-2011 02:04
The POSIX functions are deprecated. Instead of the "ereg" collection you want to use something from the PCRE world.
http://www.php.net/manual/en/book.pcre.php
