[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re:pattern help
- From: "marcus.cf" <marcus.cf@...>
- Date: Wed, 19 Nov 2003 13:36:56 -0200
for word in string.gfind('ThisIsAnExample', '%u%l+') do
-- do something with word
Not tested, i hope it works as you expect.
> I'm trying to write a pattern that matches any string t
hat is a sequence of
> initial caps words. eg ThisIsAnExample
> This is for a toy wiki I'm constructing in lua. I curre
ntly have (%u%l+%u%l)
> which matches TwoWord examples, but I cant work out how
to repeat the
> sequence. I had thought (%u%l+)
+ might work, but I'm not sure what that will
> I'd also like to know in a more general sense how to ma
tch repeated patterns
> eg. how would I match any length sequence of numberUppe
> eg. 1Yl and 1Aa4Bb9Cc
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - É grátis!