Regular Expressions 101

Community Patterns

JS Comment to VBA Comment

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 - 5 years ago