Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Following regex matches cyrillic characters in localization keys for NSLocalizedString
// Following regex matches cyrillic characters in localization keys for NSLocalizedString
//---------------------------------------------------------------------------------------
NSLocalizedString\(@"([\w\s\d]*?)([а-яА-Я]+)([\w\s\d]*?)"
//----------------------------------
// Test cases
//----------------------------------
NSLocalizedString(@"Notification", nil)
NSLocalizedString(@"Notificatio n ъ s df
", nil)
NSLocalizedString(@"Nъ", nil)
NSLocalizedString(@"nъ", nil)
NSLocalizedString(@"ъ", nil)
NSLocalizedString(@"ъываыва", nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.