I gave a tutorial on regex at Open Source Matsuri '99. I wrote a small program which generates Tgif object file.
But I had to write a strange language like this:
## -?(\d+(\.\d*)?|\.\d+)
#S,#m0,#ene,#v1,#anne,#m1,#g0,#ah11,#me,#g1,-#{lcurve1},#ge,#x-1,\
#m0,#ene,#v-2,#nne,#m1,#g0,#ese,#sse,#mlow, \
#g1,#ah2,#[\d],#m0,#ene,#annw,#m1,#g0,#h2,#me,#g1,#-,#h-3,#-,#{ureturn0},#ge,\
#{vfork1},#ah20,#mend,#g1,#ah1,#[\.],#h1, \
#h5,#m0,#ene,#v1,#annw,#m1,#g0,#h2,#me,#g1,#-,#[\d],#-,#wsw,#v-1,#asse,#ge,\
#ese,#v2,#asse,\
#glow,#ah12,#[\.],#h1, \
#[\d],#m0,#ene,#v1,#annw,#m1,#g0,#h2,#me,#g1,#-,#h-3,#-,#wsw,#v-1,#se,#ge,\
#h2,#en,#v-3,#ane,#gend,#E,
This means: "start symbol, mark here as 0, round curve east-north-east, vertical line
1 unit, curved arrow north-north-east, mark as 1, go back to point 0, ..."
I wanted an automation from regex to this language, but had no time.