in reply to
Regular expressions mystery
you might want to match /^(L+C?)/ .
Another way: if it isn't possible to combine it into a single regex, change the order of the conditions such that the longer comes earlier.
Comment on
Re: Regular expressions mystery
In Section
Seekers of Perl Wisdom