Im using preg_replace to decode bbcode and i use (.*?) to get the attribute values.
I want to replace it with font-size:\10px; (font-size:(.*?)0px;) so that for example if the attribute value is 7 then the font size would be 70. but instead it thinks that i want the value \10. What can i do to separate the attribute value and the 0?
Is it possible to do like 'font-size:'.\1.'0px;' or something similar to separate the attribute value from the zero?
'/\[size\="?(.*?)"?\](.*?)\[\/size\]/ms'replace with ='<span style="font-size:\\${1}0px">\\2</span>'sample output =<span style="font-size:70px;">blalba</span>(assuming value is 7)