Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
'[^']*(?!\\)'(*SKIP)(*F) # Make sure we're not matching inside of quotes |(?m-s:\s*(?:\-{2}|\#)[^\n]*$) # Single line comment |(?: \/\*.*?\*\/ # Multi-line comment (?(?=(?m-s:[\t ]+$)) # Get trailing whitespace if any exists and only if it's the rest of the line [\t ]+ ) )
/
gxs
Input 1
1
New
CALL agr_agreement( 1, 13075, 'HBO Latin America--this is a test', '(123) 456-7890', 'M', 'John Doe', 'john@doecom', 'Miami', '(123) 456-7890', 'Net 30', 'Quarterly', 0, '2014-09-01', '2014-09-01', /* This is a multi''-line comment */ '2017-08-31', -- single line comment 36, /*Inline, but multi-line comment*/'2015-03-26 06:59:44', @status );
Extraction