Hi ranchers,
I think the first example is an example of a programmer who mixed something up.
Keith already pointed into that direction.
[drum roll]
C.*L versus C*.L
[/drum roll]
The first (C.*L) finds patterns flanked by C and L. Looks much like a nice little pattern. Could be better if reluctant (C.*?L) but works.
The second (C*.L) finds:
Zero (!!!) or multiple occurences of "C",
then any character (one only)
and the third (or second, third... depending on how many "C"s are there) character is an "L".
Or: it finds only junk.
The "C" doesn't matter at all (zero or many "C"s)
Perhaps
test this variation(s):
Yours,
Bu.