Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
^(/\*)(\n)(\*)(.*?)(\n)(\*/$)|(?<!:)(//)(.*?)$
"
gm

Description

It converts the format of Comment/Remark codes from JavaScript to VBA. 1-line Comments are converted to 1-line Comments Block Comments are converted to 1-line Comments

Submitted by anonymous - 6 years ago