我需要匹配条目,如{@x anything}
,像a b c 1 225 {@x anything here1} test test {@x blabla} xyz test {@x any characters here}
这样的字符串。我试图\{(@x ([^\}].*\w+(\.*)\s*)*)\}
到目前为止,但是这是不是真的我想要的,我有点坚持:(Java - 正则表达式 - 组分隔
所以,应该让:
anything here1
blabla
any characters here
那么,有什么问题?你试过什么了? – AlexR 2012-03-19 15:29:10
我提到'我尝试过......迄今为止' – 2012-03-19 15:30:27