[thelist] Parsing camelcase text
misterhaan
misterhaan at track7.org
Mon Jan 12 09:29:03 CST 2009
Matt McKeon wrote:
> I thought the .*? bit would have caught the next characters, but
> apparently not.
>
the dot means any character, the star means any number of the previous
character, and the question mark after the star means the shortest
possible match. so .*? will always match a 0-length string. instead of
.*? i'd probably go for [^A-Z]* for any number of characters that aren't
capital letters.
More information about the thelist
mailing list