Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Python

r"
"([^"\\]*(\\(.|\n)[^"\\]*)*)"[\s]*=[\s]*"([^"\\]*(\\(.|\n)[^"\\]*)*)"[\s]*;
"
g

Description

Can be used to find all keys and values in .strings file.

Matching pattern: "key" = "value";

Submitted by Natan Zalkin - 10 years ago