regexp help

JLJ

JLJ

Associate
Joined
5 Feb 2007
Posts
150
I'm trying to put together a search to find all procedure calls that are not passing the second parameter.

Here is what I have:

(,){1}.'[^(,)]{0,100}'

it matches the pattern , '<n-100>'
However I dont want to find anything with that so I tried this

\);$(?<!((,){1}.'[^(,)]{0,100}'))

What I thought would happen was that it would look for everything ending with ); and made sure the preceding item was not , ''
This is not happening. I was then going to add assert\(.+ to the start.

Examples of what needs to be picked up

Assert(1=1);

Assert(IsThisTrue(OneParam, TwoParam));

Assert(x = 'Hello');

we dont want to pick this up

Assert(True=False, 'True is not false');

Any reg exp gurus out there?
 
Back
Top Bottom