Hi,
Not sure how to do this with the find and replace regex and am wondering if anyone knows how to do this.
Task 1
I have 100+ files with php tags and code inbetween all start with <?
then lots of php code
and ends with ?>
I need to replace just the first occurrence of <?php*******?> and not the rest, is this possible?
Task 2
I have another 100+ files with multiple php tags in the code <?php //some code ?> and would like to remove all occurrences.
NOTE: There may or maynot be new lines /r or /n in the php code between the php tags.
I'm not that clued up on regex and also not sure which regex can do it, ultraedit, unix or perl or any?
Any of you guys have any ideas on how to do the above?
Thanks
D
Not sure how to do this with the find and replace regex and am wondering if anyone knows how to do this.
Task 1
I have 100+ files with php tags and code inbetween all start with <?
then lots of php code
and ends with ?>
I need to replace just the first occurrence of <?php*******?> and not the rest, is this possible?
Task 2
I have another 100+ files with multiple php tags in the code <?php //some code ?> and would like to remove all occurrences.
NOTE: There may or maynot be new lines /r or /n in the php code between the php tags.
I'm not that clued up on regex and also not sure which regex can do it, ultraedit, unix or perl or any?
Any of you guys have any ideas on how to do the above?
Thanks
D