I have a file like this:
-- START
.
.
Err_EstensioneDatiClientiFornitori:
Set ClsExtClifor = Nothing
Set CallInterface = Nothing
Call MsgError("EstensioneDatiClientiFornitori")
End Sub
declare Cg44_clifor decimal(8,0)
declare Cg44_clifor decimal(6,0)
' declare Cg44_clifor decimal(6,0)
PC_CalcolaSaldoAllaData
PC_CalcolaSaldoMensileParziale
.
.
--END
I have to match only lines that contains decimal(6,0) but don’t start with character '.
I’ve tried this regEx:
.*?decimal\(6,0\)
and I get two matches. First one:
declare Cg44_clifor decimal(6,0)
Second one:
' declare Cg44_clifor decimal(6,0)
How can I exclude the second one? I don’t want lines that starts with '.
Easy enough try this:
or even better version:
Will skip any white space before checking for single quote.
EDIT:
In case library matches on multiple lines, this should work: