My string contains
[[image.jpg(alt)]]
And I need replacement
<img src="image.jpg"
alt="alt"/>
My working regex
/\[\[(.*?)\.{1}
(jpg|png|jpeg|gif)\
((.*?)\)\]\]/s
This Regex is working but i want a better Regex with additional values(example:width)
I need this string
[[image.jpg|alt|100]]
Converted to this
<img src="image.jpg'
style="width:100px"
alt="alt"/>
With Regex
I seek help for this
from you guys