Regular Expressions 101

Community Patterns

1...34567...886

resolves bug in vscode extension plibither8.remove-comments v1.2.2, see https://regex101.com/r/1M3UCa/1

1

Regular Expression
PCRE2 (PHP >=7.3)

/
#(?=(?:[^"'`]*"[^"'`]*")*(?:[^"'`]*'[^"'`]*')*(?:[^"'`]*`[^"'`]*`)*[^"'`]*$)
/
gim

Description

resolves bug in vscode extension plibither8.remove-comments v1.2.2, see https://regex101.com/r/1M3UCa/1

Submitted by anonymous - 2 months ago