我希望有一個正則表達式,將匹配:問題的一個正則表達式
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