Skip to content

Instantly share code, notes, and snippets.

@elsifaka
Last active November 19, 2018 05:08
Show Gist options
  • Save elsifaka/9f7786f15433cdde71ee to your computer and use it in GitHub Desktop.
Save elsifaka/9f7786f15433cdde71ee to your computer and use it in GitHub Desktop.
Malagasy words regex
$_ = m/\b
(ah|an|ar|eh|e|i|oh|ô|ao|ae|a|à|eo|e|ia|ie|io|oa|oe|o|'|((ai|ae|ao|a|à|ei|eo|e|ia|iai|ie|io|i|oa|oe|oi|o|')?((b|dr|d|f|g|h|j|k|l|mb|mp|m|ndr|ntr|nts|nd|nj|ng|nk|nt|n|p|r|s|tr|ts|t|v|z)(ai|ae|ao|a|à|ei|eo|e|ia|iai|ie|io|i|oa|oe|oi|o|'))*)(b|dr|d|f|g|h|j|k|l|mb|mp|m|ndr|ntr|nts|nd|nj|ng|nk|nt|n|p|r|s|tr|ts|t|v|z)(((ao|ae|a|à|eo|e|ia|ie|io|oa|oe|o|')-?)|-|'|oy|iay|ey|ay|y|i-))\b/x;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment