lua-users home
lua-l archive

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


On Sat, 2006-14-01 at 12:10 -0600, David Gish wrote:
Such limitations are inherent to "camel case" (aka "inner-caps"). For 
example, there is no way to parse "componentWithURLAndParameters" with 
a simple regular _expression_. The solution is to use a limited 
dictionary containing "URL" and any other problematic tokens.

This doesn't strike me as a robust solution.  Why not instead use two regular expressions?  The first would find you the subtokens that are all-caps and the second would then split apart what's left at the single-cap borders.

Michael T. Richter
Email: ttmrichter@gmail.com, mtr1966@hotpop.com
MSN: ttmrichter@hotmail.com, mtr1966@hotmail.com; YIM: michael_richter_1966; AIM: YanJiahua1966; ICQ: 241960658; Jabber: mtr1966@jabber.cn

Attachment: signature.asc
Description: This is a digitally signed message part