I'm attempting to use the Regex Plugin from Pluggers to replace tags with different tags. For example, change this text:
Some text.<span class='bold'>Set this text in bold please .</span> to Some text.<@bold:>Set this text in bold please .<@:> In other words, there' a starting and ending tag with any kind if text in between. I've tried: $Srchstring:="<span class='bold'>[A-Za-z_0-9]</span>" $replacestring:="@bold:[A-Za-z_0-9]<@:>" $t:=*Preg Replace*($Srchstring;$replacestring;$source) and some variations such as $Srchstring:="<span class='bold'>[\\d\\w\\s]</span>" $replacestring:="<@bold:>[\\d\\w\\s]<@:>" $t:=*Preg Replace*($Srchstring;$replacestring;$source) But they don't work ): Any suggestions as to what I'm doing wrong? Pat -- ************************************************* CatBase - Top Dog in Data Publishing tel: +44 (0) 207 118 7889 w: http://www.catbase.com skype: pat.bensky ************************************************* ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

