« smarty 文字まるめ | メイン | iptables »
2008年06月10日
文字列を正規表現エスケープ
preg_quote(エスケープしたい文字列,デフォ以外でエスケープしたい文字)
↑perl互換の場合
# preg_grep
# preg_last_error
# preg_match_all
# preg_match
# preg_quote
# preg_replace_callback
# preg_replace
# preg_split
デフォ以外でエスケープしたい文字には / がよーつかわれる
デフォだと以下のもののみ
. \ + * ? [ ^ ] $ ( ) { } = ! < > | :
につかえるんば
投稿者 muuming : 2008年06月10日 14:01