Regular expression quandry
Posted: Fri Aug 01, 2003 9:18 pm
Wondering if anyone could help here. I really have gone through the help and search online but I am stumped. I need to accomplish either of the following in the sample below:
a) Find and remove everyting but the contents in bold
or;
b) Find and remove the entire lines highlighted in blue
Note that wildcards of some type are required because the time is changing in each line. Everything I try either only selects part of the line, says not found, or invalid regular expression. Now I have tried the sneaky "bookmark the lines I don't want deleted and invert" but I'd like to try to learn how to do it using reg expressions.
SAMPLE:
[Thu Jul 31 08:32:48 2003]Local/GLDetail/GLDetail/jplater/Info(1020019)
The sheet contains an unknown member: lp_Qtr_LPW10641_Data.
[Thu Jul 31 08:32:49 2003]Local/GLDetail/GLDetail/jplater/Info(1020019)
The sheet contains an unknown member: lp_YTD_LPW10641_Data.
[Thu Jul 31 08:33:01 2003]Local/GLDetail/GLDetail/jplater/Info(1020019)
The sheet contains an unknown member: lp_Qtr_LPW10080_Data.
a) Find and remove everyting but the contents in bold
or;
b) Find and remove the entire lines highlighted in blue
Note that wildcards of some type are required because the time is changing in each line. Everything I try either only selects part of the line, says not found, or invalid regular expression. Now I have tried the sneaky "bookmark the lines I don't want deleted and invert" but I'd like to try to learn how to do it using reg expressions.
SAMPLE:
[Thu Jul 31 08:32:48 2003]Local/GLDetail/GLDetail/jplater/Info(1020019)
The sheet contains an unknown member: lp_Qtr_LPW10641_Data.
[Thu Jul 31 08:32:49 2003]Local/GLDetail/GLDetail/jplater/Info(1020019)
The sheet contains an unknown member: lp_YTD_LPW10641_Data.
[Thu Jul 31 08:33:01 2003]Local/GLDetail/GLDetail/jplater/Info(1020019)
The sheet contains an unknown member: lp_Qtr_LPW10080_Data.