Regular Expressions 101

Community Patterns

Detect Js string

0

Regular Expression
Python

r'
(?<!\\)(?P<open>[\'\"])(.*?[^\\])?(\\\\)*(?P=open)
'
gm

Description

Regex to detect string of js

Submitted by anonymous - 5 years ago