Hi
I have a line of text which I can delete - but I need to join the lines above and below
<?php endif;
echo "Delete This Line";
?>
So it end up with
<?php endif;?>
How do I do that?
Note the line above may NOT always be <?php endif;
But the last line will always be ?>
Hope I'm making sense.
Thanks
Deleting a line and joining the next
Moderators: AmigoJack, bbadmin, helios, MudGuard
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
How do you identify the lines to delete?
By the text of the line itself?
By the text of the line itself?
Or by the text of the line that follows?Find what: \necho "Delete This Line";\n
Replace with: [nothing]
[X] Regular expression
Or by both?Find what: \n.*\n\?>
Replace with: ?>
[X] Regular expression
Note that these don't use regular expressions, but TextPad only interprets \n as a newline (in both the search and replacement expressions) if you select Regular expression.Find what: \necho "Delete This Line";\n\?>
Replace with: ?>
[X] Regular expression