regex_match

パターンが文字列全体にマッチするか判定

regex_match pattern, text

解説

stat=1 でマッチ、stat=0 で不一致。

サンプル

	regex_match "^[0-9]+$", "12345"
	mes stat  ; 1

関連項目

regex_search最初のマッチを検索

サンプル逆引き (1)

sample_regex.hsp

情報

バージョン3.8
作成日2026/04/16
著作者IronHSP
備考hspregex.dll が必要です。C++11 std::regex (ECMAScript 互換)。
タイプユーザー定義命令
グループ正規表現
hs ファイルhsphelp\iron_regex.hs