StringTokenizer st = new StringTokenizer(remaining, "\t\n\r\"'>#");
String strLink = st.nextToken();
残りの文字列への入力は、次のいずれかになります。
"http://somegreatsite.com">Link Name</a>is a link to another nifty site<H1>This is a Header</H1><H2>This is a Medium Header</H2>Send me mail at <a href="mailto:support@yourcompany.com">support@yourcompany.com</a>.<P> This is a new paragraph!<P> <B>This is a new paragraph!</B><BR> <B><I>This is a new sentence without a paragraph break, in bold italics.</I></B><HR></BODY></HTML>
"mailto:support@yourcompany.com">support@yourcompany.com</a>.<P> This is a new paragraph!<P> <B>This is a new paragraph!</B><BR> <B><I>This is a new sentence without a paragraph break, in bold italics.</I></B><HR></BODY></HTML>
StringTokenizer
コンストラクターが*remaining*
正規表現を使用して文字列をトークンに分割することを知っています。しかし、ここで使用されている正規表現を理解できません。
文字列のstrLink
値に基づいて、は次の値になります*remaining*
。
1.2 http://somegreatsite.com
。mailto:support@yourcompany.com
上記のコードで使用されている正規表現を理解するのを手伝ってください。