« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 1 of about 1 for capturing (0.000 sec.)
サブパターン | PHP 8.3 9414
サブパターン サブパターンは、丸カッコで括られたパターンのことで、ネストも可能です。 パターンの一部をサブパターンにすると、以下の 2 つのことが可能になります。 選択肢の範囲の指定 (localize)。例えば、パターン cat(aract|erpillar|) は、単語 "cat ... re_exec() の引数 ovector で) 返されます。 開きカッコの数が(1 から始まって)左から右に数えられ、 キャプチャ用サブパターン (capturing subpattern) の番号が指定されます。 例えば、文字列 "the red king" に対し、パターン the ((red|white) (king|queen)) をマッチン ...
https://man.mtool.work/php/8.3/regexp.reference.subpatterns.html
PREV 1 NEXT