pcre2_search

最初のマッチ検索

pcre2_search pattern, text

解説

refstr にマッチ文字列。

サンプル

	pcre2_search "(?<=@)\w+", "user@example.com"
	mes refstr  ; "example"

関連項目

pcre2_match全体マッチ判定

サンプル逆引き (1)

sample_pcre2.hsp

情報

バージョン3.8
作成日2026/04/16
著作者IronHSP
備考hsppcre2.dll が必要。PCRE2 10.44 Perl 互換。UTF-8 Unicode フル対応。
タイプユーザー定義命令
グループ正規表現 (PCRE2)
hs ファイルhsphelp\iron_pcre2.hs