
I have read on several posts how you do not have a non-greedy parser due to speed. It would be good if this were an option rather than an absolute or if you would provide an option to use the .NET regex engine.
The lack of a non-greedy option is very frustrating. For example, I have the following code snippet from SAS:
ERROR: BY variable cs_uri_stem is not on input data set WORK.UNIQUE_URLS.
ERROR: BY variable requested_file is not on input data set WORK.UNIQUE_URLS.
NOTE: Compression was disabled for data set L_WDATA.UNIQUE_URLS because compression overhead
would increase the size of the data set.
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set L_WDATA.UNIQUE_URLS may be incomplete. When this step was stopped there
were 0 observations and 1 variables.
NOTE: DATA statement used (Total process time):
real time 0.11 seconds
user cpu time 0.00 seconds
system cpu time 0.09 seconds
Memory 156k
I would like to grab the entire NOTE or WARNING statement and highlight them but I cannot find a way to cross multiplelines and search for the next message. Under a non-greedy construct this is simple but I have worked on this a long time and do not see how to do it using a pure greedy approach.
Alan
[Modified at 12/23/2006 03:09 AM]
[Modified at 12/23/2006 03:09 AM]
The lack of a non-greedy option is very frustrating. For example, I have the following code snippet from SAS:
ERROR: BY variable cs_uri_stem is not on input data set WORK.UNIQUE_URLS.
ERROR: BY variable requested_file is not on input data set WORK.UNIQUE_URLS.
NOTE: Compression was disabled for data set L_WDATA.UNIQUE_URLS because compression overhead
would increase the size of the data set.
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set L_WDATA.UNIQUE_URLS may be incomplete. When this step was stopped there
were 0 observations and 1 variables.
NOTE: DATA statement used (Total process time):
real time 0.11 seconds
user cpu time 0.00 seconds
system cpu time 0.09 seconds
Memory 156k
I would like to grab the entire NOTE or WARNING statement and highlight them but I cannot find a way to cross multiplelines and search for the next message. Under a non-greedy construct this is simple but I have worked on this a long time and do not see how to do it using a pure greedy approach.
Alan
[Modified at 12/23/2006 03:09 AM]
[Modified at 12/23/2006 03:09 AM]