Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-03-11 16:19
Updated·2022-03-11 22:24
Flavor·PCRE2 (PHP)

/
\b(?:[ptkmnlswj]? (?:(?<=w)[aei]| (?<=[jt])[aeou]| (?<=[pkmnls])[aeiou]| (?<=\b)[aeiou]) (?:n(?![nm]?[aeiou]))?)+\b
/
ixg
Open regex in editor

Description

a regex for matching words according to the rules of writing toki pona in latin characters

Submitted by anonymous