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