Regular Expressions 101

Community Patterns

iOS Localizable.strings parser

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 - 9 years ago