replace string julia code example
Example: using replace() in Julia
# hello.jl
# --- Greeting ---
println("Hello!")
println("How are you?")
# --- Input ---
x = readline()
# --- Put the characters in the ' ' for use later ---
removechar = ['.', '!', '*', '(', ')',' ']
# --- Fixing ---
fixedX = replace(lowercase(x), removechar => "")
# --- Print Answer ---
println("I'm ", fixedX, " too!")