iOS Localizable.strings parser

Published on Tue Mar 01 2022

Can be used to find all keys and values in .strings file. Matching pattern: "key" = "value";

Additional matching regexes for
iOS Localizable.strings parser

iOS Localizable.strings parser

Can be used to find all keys and values in .strings file. Matching pattern: "key" = "value";

matching value of html src attribute

matching value of html src attribute

Matching Multiline Strings in Large Text File

Need Help, Matching Multiline Strings in Large Text File

someone knows he answer?

are both strings matching, I wnat only the second one to match

CFF-definitions.reference.isbn

Pattern for validating a `definitions.reference.isbn` value in the Citation File Format (CFF)

Valid RGB color value

Pattern for matching actually valid RGB values. - validate separator (mixing spaces and commas between values is not valid) - validate if comma is used as separator if alpha channel is set - validate units (mixing percentage with integers is not valid) - extract `r`, `g`, `b`, `a`, `separator` and `unit` with named groups

ip/host:port parser (proxy lists)

simple ip:port or host:port parser capturing ip or host and port, usually used for proxy lists

parsing CSV file

It correctly handles simple values, empty values, and quoted values with commas inside.

Regex to match any JSON value with fewer steps possible

If you find... - any JSON value that should be matched but isn't, - any JSON value that should NOT be matched but is - or simply a way to match the values with fewer steps... please, let me know.

html color match: transparent, #fff, #123456, rgb, rgba, hsl, hsla

This may be useful or not to test whether a given string is a valid (more or less) html color value. It matches color values such as: - #123 - short hex color value - #123456 - hex color value - rgb(255,255,0) - rgb color value - rgba(255,255,0,1.0) - rgba color value - hsl(360,100%,100%) - hsl color value - hsla(360,100%,100%,0.5334) - hsla color value Regex allows whitespaces between i.e. rgb and (, also between numbers and commas, but not in value like 55% between number and percentage. To change this behaviour simply remove \s*? from appriopriate places.