Skip to content

Instantly share code, notes, and snippets.

@oktomus
Last active November 23, 2017 20:59
Show Gist options
  • Save oktomus/fb63aafb46493fd9ec7d9f3cc52ccb70 to your computer and use it in GitHub Desktop.
Save oktomus/fb63aafb46493fd9ec7d9f3cc52ccb70 to your computer and use it in GitHub Desktop.
Usefull regex
Duik translation files
-----------------------
DutranslatorArray.push(["Duik - Loading icons",0,"Duik - Chargement des icônes"]);
\\"([^\\"\\](?:\\.[^\\"\\])?)\\" , (\\d) , \\"([^\\"\\](?:\\.[^\\"\\])?)\\" ]\); (?:\/\/(.))*
Capture les 3 ou + paramètres entre ([ et )]
Dutranslator.languages.push(['fr','Français']);
'([^\\\\\\*\\.\\s/]+)','([^\\\\\\*\\.\\s/]+)'
Capture le code et le language name
-----------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment