[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: word boundary \b (regular expression) in Lua
- From: Zhe Hu <iamhuzhe@...>
- Date: Mon, 28 Mar 2005 18:55:40 -0600
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.