Regular Expressions 101

Library entries

Find comments or commentblocks in Code V1.01

Vote

-1

Regular Expression
pcre

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

Description

Loading markdown...
Submitted by Candyman1332 - 6 years ago