Find & replace


I need to find and replace that tag:


And here are my config file :

Generated by’s web-based selection tool

Place this file inside your site_config/custom/ folder


body: //div[contains(concat(’ ‘,normalize-space(@class),’ ‘),’ img_Block ')]//img | //p

srtip: //div[contains(concat(’ ‘,normalize-space(@class),’ ‘),’ columns ‘) and (contains(concat(’ ‘,normalize-space(@class),’ ‘),’ padding ‘)) and (contains(concat(’ ‘,normalize-space(@class),’ ‘),’ m_m ‘))]//div[contains(concat(’ ‘,normalize-space(@class),’ ‘),’ adv ‘) and (contains(concat(’ ‘,normalize-space(@class),’ ‘),’ hide-for-small '))]//div
strip: //a

tidy: yes
parser: html5lib

Clean HTML after procesing

prune: no



Hi Mohammed,

You can use the following to find and replace:





This would be entered in the txt file that we would create for that specific domain, correct?


Jojo Valdez


Yes, that’s correct. So if you wanted this replacement to happen on all requests to You would create or edit the site config file and add those lines to it.


Exactly where do we put find_string and replace _string in the txt file? Does it has to be in certain tags or can it be anywhere in that text file? Can we also put html code in the find and replace?



Hi there, they can be anywhere in the text file. But find_string should precede replace_string as they’re treated as a set. You can see examples here✓&q=find_string