Link to home
Start Free TrialLog in
Avatar of CitizenX
CitizenX

asked on

replace in strings

how can i replace a certain char or space in a string ?
stringname.replace('e','a') replaces e's with a's right ? and how about space ? like cutting out all spaces from a string to make "my name is citizenx" to "mynameiscitizenx" ?
thanks for any help
Greets CitizenX
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

try stringname.replace(' ','');
ASKER CERTIFIED SOLUTION
Avatar of Exceter
Exceter
Flag of United States of America image

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 CitizenX
CitizenX

ASKER

you rock my friend, i've been asking lots of people and you were the only one with this idea