Regular Expressions 101

Community Patterns

json comment - first attempt

1

Regular Expression
Python

r"
^(?:[^"#]*".*"[^"#]*|[^"#]*)(#.*)?$
"
gmi

Description

Loading markdown...
Submitted by Mark - 8 years ago