I before E except after C: Difference between revisions
m
→{{header|Kotlin}}: Aligned comments
(Added Kotlin) |
m (→{{header|Kotlin}}: Aligned comments) |
||
Line 1,180:
Regex("(^|[^c])ie"), // i before e when not preceded by c (includes words starting with ie)
Regex("(^|[^c])ei"), // e before i when not preceded by c (includes words starting with ei)
Regex("cei"), // e before i when preceded by c
Regex("cie") // i before e when preceded by c
)
val counts = IntArray(4) // corresponding counts of occurrences
|