« 定義済み定数
PCRE のパターン »

例

例1 有効なパターンの例

  • /<\/\w+>/

  • |(\d{3})-\d+|Sm

  • /^(?i)php[34]/

  • {^\s+(\s+)?$}

例2 無効なパターンの例

  • /href='(.*)' - 終端デリミタが抜けている

  • /\w+\s*\w+/J - 未知の修飾子 'J'

  • 1-\d3-\d3-\d4| - 始端デリミタが抜けている

関連キーワード:
パターン   デリミタ   定数   無効   href   終端   未知   修飾   始端
関連する関数・ページ:
regexp.reference.delimiters   pcre.pattern   reference.pcre.pattern.syntax   function.ps-end-pattern   expect.constants   regexp.reference.anchors