Processing (BETA) version 135+ のリファレンスです。 旧バージョン使用者はソフトウェア内のリファレンスを参照してください。
この文書は Processing のAPIリファレンスを日本語に訳したものです。 最新の内容は 英語版 で確認して下さい。


Name

match()

Examples
String s = "Inside a tag, you will find content.";
String[] m = match(s, "(\\S+)");
println("Found " + m[0] + " inside the tag.");
// Prints "Found content inside the tag." to the console
Description match() は正規表現をテキストに適用します。 マッチしたグループ(括弧内とマッチした要素)は String 型の配列で返されます。 null とはマッチしません。 正規表現とマッチするグループがない場合、 長さが "0" の配列(null ではない)が返されます。

構文は Java Pattern クラスのリファレンスにあります。 正規表現の構文について書かれている Java Tutorial に目を通して下さい。
Syntax
match(str, regexp)
Parameters
str the String to be split
regexp the regexp to be used for matching
Usage Web & Application
Related split()
splitTokens()
join()
trim()
Updated on March 26, 2008 10:42:17pm PDT

Creative Commons License

この文書の原文はクリエイティブ・コモンズ(Creative Commons)Attribution-Noncommercial-Share Alike(表示・非営利・継承) ライセンスで公開されています。 このライセンスは同一の許諾条件の下で原作者のクレジットを表示し、また作品を営利目的で利用しなければ、作品に対して複製、頒布、展示、実演、二次的著作物の作成が行えることを示します。

© 2007 Processing.org