curly braces:
\{[^}]*\}
{everything between curly braces}
However, { and } are ignored
where they appear in a string constant,
even inside comment blocks:
"no { comment yet"
{ now this is a comment
and it "does } not end yet"
but now it does}
PHP and JS and C/C++:
/* the comment starts ...
... continues ...
... and ends */
Eas and Pascal:
{ the comment starts ...
... continues ...
... and ends }
Tip: To toggle a portion of code on or off,
you can build yourself a comment switch:
...
--{
code that runs for testing
--}
...
Break the --{ line to toggle to:
...
--
{
code that is off for testing
--}
...