regex with negative backtrace in Omnis Find

Bastiaan Olij bastiaan at basenlily.me
Thu Dec 5 16:49:34 EST 2013


Hey mark,

No idea but I've found that negatives often work better with bracket
notation, so try something like:
[^@]\[[^[]+\]

That seems to work for me, it only doesn't find lines that start with
[....] because it evaluates the character before but I doubt any such
lines exist?

Cheers,

Bas

On 6/12/13 6:00 AM, Mark Phillips wrote:
> 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
>
>




More information about the omnisdev-en mailing list