regex with negative backtrace in Omnis Find

Nick Harris nick.harris at dataweaver.com
Thu Dec 5 18:05:40 EST 2013


Hi Mark
I have a xml export that will do this, though it only works in Studio 6.01
and is only 95% complete.
Send me a message off list if your interested in giving it a test run
Nick

-----Original Message-----
From: omnisdev-en-bounces at lists.omnis-dev.com
[mailto:omnisdev-en-bounces at lists.omnis-dev.com] On Behalf Of Mark Phillips
Sent: 05 December 2013 19:01
To: OmnisDev List - English
Subject: regex with negative backtrace in Omnis Find

I am analyzing a library with over 200K lines of code, 23K branching
statements and about 20K of comments. I would like to use the Omnis Find to
list all the uses of square bracket notation that is not a bind variable
expression. E.g. include "$ctask.[myVarName]" but not "... WHERE name LIKE
@[myNameString]".

I could dump the entire library out to file or db, but this is a one time
thing so a quick find is attractive. 

I have used regular expressions in the SDK Find dialog to locate many
things. However, the concept of filtering out a specific prefix has not
produced the desired result. I have tried several variants of this
expression: 
	(?<!@)[
For example, (\?<!@)\[ among others.

I would be most grateful for any suggestions.

 - Mark_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com


-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.3426 / Virus Database: 3658/6893 - Release Date: 12/05/13





More information about the omnisdev-en mailing list