I want a regex that will match:
A type with an ID:
[Image=4b5da003ee133e8368000002]
[Video=679hfpam9v56dh800khfdd32]
With between 0 and n additional options separated with @
:
[Image=4b5da003ee133e8368000002@size:small]
[Image=4b5da003ee133e8368000002@size:small@media:true]
I have this so far :
\[[a-zA-Z]*=[a-zA-Z0-9]*[@[a-zA-Z]*:[a-zA-Z]*]*\]
... but it's not matching all the cases.