change fields with sed or awk

Have a file like the following:

10, X1'100', A, X1'200',C
20, X1'300',B, ,D
30, X1'400', X1'500',F,G
Want to revise it to
10, Y2'(100','CC'), A, Y2('200','CC'),C
20, Y2('300','CC'),B, ,D
30, Y2('400','CC'), Y2('500','CC'),F,G
That is to change any item like X1'100' to Y2('100','CC') with sed or awk,
Please, can any gurus shed some light on it?
Thanks in advance.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sed "s/X1'\([0-9]*\)'/Y2('\1','CC')/g"

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jl66ConsultantAuthor Commented:
--ozo, Excellent!!!

One small thing:

In one of our servers,  the command generated several extra characters below. I tried the different way to run it, but they stayed there. It seems normal to run the other commands on this server. Do you know what caused them?
10, Y2('100','CC'), A, Y2('200','CC'),C
20, Y2('300','CC'),B, ,D
30, Y2('400','CC'), Y2('500','CC'),F,G

I tried to
jl66ConsultantAuthor Commented:
run it on the other servers, it generated what I want. the shell on all servers are the same /bin/bash. Thanks.
jl66ConsultantAuthor Commented:
As always, I greatly appreciated your constant help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Shell Scripting

From novice to tech pro — start learning today.