I am creating a template parser function that can recognise some tag like this
<wl:include param1="value1" param2="value2" param3="value3" />
currently I am using this regex to match...
$regex = '#<wl:include\ (([a-zA-Z0-9]*)=(.*))*\/>#iU';
it's quite working but unfortunately it can't read this tag
<wl:include param1="value1" param2="value2" param3="some tag with <br/> like this" />
it will only read until :
<wl:include param1="value1" param2="value2" param3="some tag with <br/>
How do I fix the regex.. I am still learning regex so maybe I miss something...

Help












