I have a string that looks like this
ATOM LEU 0.1234 C 0.123 0.32 0.34
How do I replace the C
with .replace()
to &
in Javascript by getting only the location of C
? The letter of C
can essentially be anything.
I want
ATOM LEU 0.1234 & 0.123 0.32 0.34.