I have this expression
if lbVar and ldcVar < 0.00
And i need to match the right part of "and" that may contain parenthesis.
The expression to match without the parenthesis is already done:
if(match(linha, /(\t| )*(and)(\t| )+(\<ldc\w*)[ \t]*(<)[ \t]*(ldc\w*|[0-9]|[0-9]+(\.[0-9]*))/) > 0){
print "match: "substr($0, RSTART, RLENGTH);
}
The problem is the expression may appear as:
if lbVar and ( ldcVar < 0.00 )
How can i correct my regex so that match both situation, that is, with or without parenthesis?
Thanks