Hello everyone, I help manage a forum I set up for a friend.
This forum uses a CGI program, so the forum's data is all in text files.
But some problems came up while editing the text files, please help me ><
The text files use ∥ as the separator.
I want to find in all text files and delete everything between the last, second-to-last, and third-to-last ∥ separators.
Example as follows:
Before processing:
1∥PowerDirector 6 practical online tutorial∥Who am I∥123@yahoo.com.tw∥This webpage cannot be linked<br>∥2007/10/11 10:55∥219.84.136.241∥d6wRPnMHgj46Q∥1192071350∥QBIFBW3Q∥
After processing:
1∥PowerDirector 6 practical online tutorial∥Who am I∥123@yahoo.com.tw∥This webpage cannot be linked<br>∥2007/10/11 10:55∥219.84.136.241∥
Simply put, as long as everything after 219.84.136.241 can be deleted, that's fine.
But 219.84.136.241 is the user's IP, so it is an irregular string.
Please help, thank you very, very, very much, it's urgent ><
Many thanks
[ Last edited by leo1984 on 2007-10-31 at 02:03 AM ]
This forum uses a CGI program, so the forum's data is all in text files.
But some problems came up while editing the text files, please help me ><
The text files use ∥ as the separator.
I want to find in all text files and delete everything between the last, second-to-last, and third-to-last ∥ separators.
Example as follows:
Before processing:
1∥PowerDirector 6 practical online tutorial∥Who am I∥123@yahoo.com.tw∥This webpage cannot be linked<br>∥2007/10/11 10:55∥219.84.136.241∥d6wRPnMHgj46Q∥1192071350∥QBIFBW3Q∥
After processing:
1∥PowerDirector 6 practical online tutorial∥Who am I∥123@yahoo.com.tw∥This webpage cannot be linked<br>∥2007/10/11 10:55∥219.84.136.241∥
Simply put, as long as everything after 219.84.136.241 can be deleted, that's fine.
But 219.84.136.241 is the user's IP, so it is an irregular string.
Please help, thank you very, very, very much, it's urgent ><
Many thanks
[ Last edited by leo1984 on 2007-10-31 at 02:03 AM ]


