Repeated letters in ggg

Conworlds and conlangs
Post Reply
User avatar
WarpedWartWars
Posts: 207
Joined: Sat Aug 28, 2021 2:31 pm
Location: tɑ tɑ θiθɾ eɾloθ tɑ moew θerts
Contact:

Repeated letters in ggg

Post by WarpedWartWars »

Regular expressions have a way to do this, for example (whatever*) matches "whateverwhateverwhatever", "whatever", etc., but not "whatevre", "waeehtvr", "qwertyuiopasdfghjklzxcvbnm", etc. Is there a way to do this in ggg?
zompist
Site Admin
Posts: 4373
Joined: Sun Jul 08, 2018 5:46 am
Location: Right here, probably
Contact:

Re: Repeated letters in ggg

Post by zompist »

As stated, sure:

S=W
W=W W|whatever

I'm guessing you mean something more complicated than this, but I'm not sure what!
User avatar
WarpedWartWars
Posts: 207
Joined: Sat Aug 28, 2021 2:31 pm
Location: tɑ tɑ θiθɾ eɾloθ tɑ moew θerts
Contact:

Re: Repeated letters in ggg

Post by WarpedWartWars »

What I specifically want it for is an extended version of the Math Expressions example. I want it to turn "gggggggg" into "g8", "ff" into "f2" etc. Not generating them, but rather collapsing them.
kaêdẑ ac kodẑ vanén etan voâl
ve doâ alber noâ ful dobedẑ
cāêr mıdẑ noâ mūdẑr bet ful
paêl noâ mur gen dobedẑ
Post Reply