我希望有一个正则表达式,将匹配:问题的一个正则表达式
A型与ID:
[Image=4b5da003ee133e8368000002]
[Video=679hfpam9v56dh800khfdd32]
随着之间0和n附加选项分离与@
:
[[email protected]:small]
[[email protected]:[email protected]:true]
我到目前为止:
\[[a-zA-Z]*=[a-zA-Z0-9]*[@[a-zA-Z]*:[a-zA-Z]*]*\]
...但它不符合所有情况。
这已解决,但它使我遇到了另一个问题,在这里贴出:http://stackoverflow.com/questions/2230372/getting-some-elements-in-a-string-using-a-regex – marcgg 2010-02-09 15:56:36