lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

I am wondering how to turn "the cat in the hat" into "The Cat In The
Hat" in pure Lua.

Since there isn't word boundary (anchor point) in Lua, is there? The
regular expression "%b(%w)" won't work.

Is there look-around in Lua's string library? Or other ways to get around this.

Thanks in advance.

Hu Zhe