10/10/2018, 09:47
Giúp em cắt bỏ code!!
Tình hình là khi đọc các ebook nước ngoài các đoạn code thường hay có đánh số thứ tự đằng trước.Mọi người có thể giúp em cắt bỏ nó được không?
VÍ dụ như:
sau khi cắt:
Em xin cảm ơn nhiều.
VÍ dụ như:
1. <?
2. session_start();
3. if(!isset($count)) {
4. session_register("count");
5. $count = 1;
6. }
7. ?>
8. You have been to this page <?=$count?> times.
9. <?
10. $count++;
11. ?>
2. session_start();
3. if(!isset($count)) {
4. session_register("count");
5. $count = 1;
6. }
7. ?>
8. You have been to this page <?=$count?> times.
9. <?
10. $count++;
11. ?>
sau khi cắt:
<?
session_start();
if(!isset($count)) {
session_register("count");
$count = 1;
}
?>
You have been to this page <?=$count?> times.
<?
$count++;
?>
session_start();
if(!isset($count)) {
session_register("count");
$count = 1;
}
?>
You have been to this page <?=$count?> times.
<?
$count++;
?>
Bài liên quan
Gõ vào box find: \d+.\s
Mục replace để trống.
Tham khảo hình với ví dụ trong eclipse PDT.