Here is a sample: backslashes.txt Looking for a word that has a \?
Try this: \indent
lookforbackslash.jl
function lookforbackslash(txt)
println(txt)
i = start(txt)
while !done(txt,i)
c,i = next(txt,i)
if c == '\\'
println("Found a backslash at character $(i-1)")
end
end
end
txt = open(readall,"backslashes.txt")
lookforbackslash(txt)
Then run:
julia> include("lookforbackslashes.jl")
Hope this helps :)
