I know it's easy for the most of the people, but it isn't for me, regular expressions pain me alot.
What I need is to replace all the string inside the '%s' ... '%s' for a element:
original: I have read and accept %sthe terms of booking%s
what i want is to replace all the '%sthe terms of booking%s' for something like:
<a href="..." id="enlaceCondiciones" target="_blank" >Condiciones de venta</a>
Thanks in advance.
PD: Text inside the '%s' - '%s' changes depending on the user language, so a simple str_replace is not a solution in this case