Hello. I would like to replace all spaces in a string for " and ". For example: if user enters "Canon digital camera" in text field I would like to convert it to "Cannon and digital and camera",
BillyRayPreachersSon, I hoped it would make some booms
adam0101, this works, thanks. But now I realized: what if the user will mistakenly type "Canon digital camera", with two spaces. The result will be Canon and and digital and camera.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.