私は文字列を持っています:"stuffhere{@ name="productViewer" vars="productId={{id}}"}morestuff"
{
beginと last の間のすべてを見つけるにはどうすればよいですか}
。
Pattern.compile("\\{@(.*?)\\}" + from, Pattern.DOTALL); //Finds {@ name="productViewer" vars="productId={{id}
}
エンディングの前後に別のエンディングがないことを確認するにはどうすればよい}
ですか? 文字列は他の文字で囲まれている場合もあります。
正規表現のみが返されるようにしたい: name="productViewer" vars="productId={{id}}"