HI DP's, I want to change 1 line of code in my script,but I'm not PHP coder so don't know how: $html = preg_replace('#<a[^>]*class="add-review"[^>]*>.*?</a>#is', '', $html); The line above replace links but i want to replace specific text,which is not <a but : </div><div class="business-info"> Please help me to replace the business info part. Regards in advance Nasi
If it's just specific text you want to replace, try this: $html = str_replace('</div><div class="business-info">', '[REPLACEMENT_TEXT]', $html);