Regular Expressions
Posted: Mon Jul 30, 2001 10:52 am
Hi there,
Being a newcomer to this great bit of software, could anyone tell me if it's possible for me to do the following.
I have a number (100s!) of web log files that have been incorrectly produced.
Example:
#Software: Microsoft Internet Information Server 4.0
#Version: 1.0
#Date: 2000-03-16 07:28:11
#Fields: time c-ip cs-username cs-method ....
07:28:11 193.149.83.224 - GET / - .....
07:28:32 193.149.83.224 ......
07:28:33 193.149.83.224 - ....
I need to append the date as it appears in line 3, to the begginning of all the other lines (not starting with #).
I've produced a macro in Textpad to find the date and copy it in, but I can find no way of applying this to all the open files I have. One at once would be a bit tedious...
I know find and replace can look at all files, but I don't know how to select the date in each file and then use it.
Any help would be greatly appreciated.
Andrew
Being a newcomer to this great bit of software, could anyone tell me if it's possible for me to do the following.
I have a number (100s!) of web log files that have been incorrectly produced.
Example:
#Software: Microsoft Internet Information Server 4.0
#Version: 1.0
#Date: 2000-03-16 07:28:11
#Fields: time c-ip cs-username cs-method ....
07:28:11 193.149.83.224 - GET / - .....
07:28:32 193.149.83.224 ......
07:28:33 193.149.83.224 - ....
I need to append the date as it appears in line 3, to the begginning of all the other lines (not starting with #).
I've produced a macro in Textpad to find the date and copy it in, but I can find no way of applying this to all the open files I have. One at once would be a bit tedious...
I know find and replace can look at all files, but I don't know how to select the date in each file and then use it.
Any help would be greatly appreciated.
Andrew