2015-11-04, 07:04 AM
I'm trying to create an expression that allows users to size and align an image in the same instance.
Regular Expression:
Replacement:
When I insert the mycode as such:
Everything looks great. It works. Awesome.
When I go back to edit my post, I see this:
For some reason, the align is getting dropped and the width is becoming something else.
What am I missing here?
Regular Expression:
\[img width=(.*?) align=(left|center|right)\](.*?)\[/img\]
Replacement:
<img src="$3" width="$1" align="$2" />
When I insert the mycode as such:
[img width=100 align=right]IMG URL HERE[/img]
Everything looks great. It works. Awesome.
When I go back to edit my post, I see this:
[img=100x100]IMG URL HERE[/img]
For some reason, the align is getting dropped and the width is becoming something else.
What am I missing here?