這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
editor:regular_expression [2007/04/13 19:42] wenpei in PHP |
editor:regular_expression [2015/07/12 22:05] (目前版本) sars [Visualize tool] |
||
---|---|---|---|
行 1: | 行 1: | ||
====== 正規表示式 ====== | ====== 正規表示式 ====== | ||
+ | {{:editor:regular-expressions-cheat-sheet-v2.png|}} | ||
- | {{http://www.ilovejackdaniels.com/regular_expressions_cheat_sheet.png}} | + | ===== Regular Expression Library ===== |
+ | http://regexlib.com/ | ||
+ | ===== Visualize tool ===== | ||
+ | * http://www.regexper.com/ | ||
+ | * https://www.regex101.com/ | ||
+ | ===== 基礎寫法 ===== | ||
^ Char ^ ^ | ^ Char ^ ^ | ||
| . |任何單一字元| | | . |任何單一字元| | ||
行 46: | 行 52: | ||
ereg(正規表達式, 字串 [, 結果矩陣]); | ereg(正規表達式, 字串 [, 結果矩陣]); | ||
eregi(正規表達式, 字串 [, 結果矩陣]); // 不區分大小寫 | eregi(正規表達式, 字串 [, 結果矩陣]); // 不區分大小寫 | ||
+ | |||
+ | ====== 37 Tested PHP, Perl, and JavaScript Regular Expressions ====== | ||
+ | http://www.virtuosimedia.com/tutorials/37-tested-php-perl-and-javascript-regular-expressions | ||