Regular Expressions 101

Library entries

extract java property name and value

Vote

1

Regular Expression
pcre

/
(?<propName>[A-Za-z0-9_.-]+)(?<assign>\s*(?:=|:)\s*)(?<propVal>(?:[^\r\n\\]++|\\(?:\r?\n|\r|.))*+$)
/
mg

Description

Loading markdown...
Submitted by Zart Colwing - 6 years ago