Hello,
Whether this is regular depends on C, Y, and B. If C == B and Y == "", then this is regular, and the expression is (B B)*. But if C /= B then it isn't. For instance,
'a'^n 'b'^n
A formal language is *any* set of strings. A context-free language is a set of strings that can be defined by a context-free grammar.
Aarne.