I am trying to match specific span-tags from an HTML source.
The lang-attribute and the inner HTML of the tag are used as parameters for a function which returns a new s
You can specify it to be ungreedy using ?
?
/((.*?)<\/span>)/is
or make all expression ungreedy by default using PCRE_UNGREEDY modifier
/((.*)<\/span>)/Uis