Link to home
Start Free TrialLog in
Avatar of dfernan
dfernanFlag for United States of America

asked on

Change Names

Hi,

I want to change the last C to a c in the names that have a c at the end. Any suggestions on how to do that in python?

My data is of the type:

SPAC1834.03C
SPAC821.09
SPBC3E7.12C
SPAC19G12.06C
:
:
etc....

Goal: change the last C to a c using regex or sub...


ASKER CERTIFIED SOLUTION
Avatar of pepr
pepr

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dfernan

ASKER

I guess I just wanted a regex general solution but yours is perfect so thanks a lot
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial