Please have an option to allow non greedy regex

SyntaxEditor for Windows Forms Forum

Posted 14 years ago by Alan C - Owner, Savian
Version: 4.0.0237
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.


[Modified at 12/23/2006 03:09 AM]

[Modified at 12/23/2006 03:09 AM]

Comments (1)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Thanks Alan, I'll mark down your note.

Actipro Software Support

The latest build of this product (v2020.1 build 0401) was released 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.