Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
[ptkmnlswj]? (?:(?<=w)[aei]| (?<=[jt])[aeou]| (?<=[pkmnls])[aeiou]| (?<=\b)[aeiou]) (?:n(?![nm]?[aeiou]))?
/
gxi

Description

regular expression for syllabifying words in toki pona

Submitted by anonymous - 3 years ago (Last modified 3 years ago)