Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"""
(?<==)(['"])?[^'"]+(?(1)\1|\s)
"""
gm

Description

value part of key=value key='value' key="value" value can have spaces if quoted

Submitted by anonymous - 6 years ago