Regular Expressions 101

Community Library

Community Library Entry

-1

Regular ExpressionOpen Workspace

/
((?<raute>#(?<raute_content>[^\n]*))|(?<doubleslashes>\/\/(?<doubleslashes_content>[^\n]*))|(?<block>\/\*(?<block_content>[^*]+|\*(?!\/))*+\*\/))
/
gm

Description
Created·2015-12-30 15:09
Type·Match
Flavor·PCRE (Legacy)

Find Comments starting with # or //. Also finds Commentblocks starting with /* and ending with */.

Submitted by Candyman1332
Open Workspace