EQnoble
Well-known member
well here is the thing, I would not capture the pieces individually, I would be capturing the tags and the content in between with one expression and then literally swapping the tags...
I need to know what will be in the tags to do that. If you don't want to tell me that the best I can do is offer you this...
I need to know what will be in the tags to do that. If you don't want to tell me that the best I can do is offer you this...
Code:
Quick Find: [amazon]
Regular expression: #\[amazon\]([0-9]+)(\/.+)?\[\/amazon\]#siu
Replacement String: [ media=amazon]\1[ /media]
// if you want to include the crap after the ASIN use this below for the Replacement String instead.
[media=amazon]\1\2[ /media]