Hi!
I have the following pattern and replacement:
// [img alt= align=]image_url
$patterns[] = “#[(]^?].*?)[]
$replacements[] = ‘<img src=”
those two arrays are sent in as parameters to the preg_replace function later in the code.
The thing is that I want it to be able to write [img alt=myalttext align=right]myimgurl
<img src=”myimgutl” alt=”myalttext” class=”right” />
Im new to regex so this might be totaly wrong from the very start of the regex
Thanks in advance!