Regex for a PHP file

Hi!

I've been reading several questions from other people but I can't seem to figure out what I need.

Please I need help with a files. I have .php files, where I need to exclude certain texts.

Ex:
1- I need to not take me the text inside the comment.
Screenshot highlighting PHP code with words 'Trial' and 'Demo' within comments, indicated by a red box.

2- I don't need the code before those words. But I need this words: Trial, Demo, Contact
Close-up of PHP code with 'Trial', 'Demo', and 'Contact' text highlighted and enclosed in red boxes.

3- I need to exclude the code that is inside that tag (<?php ?>).
PHP tag containing code to be excluded, surrounded by a red box, with 'Our Customers' and 'Customer Acclaim' visible below.



Generated Image Alt-Text
[edited by: Trados AI at 2:48 AM (GMT 0) on 29 Feb 2024]
emoji