Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- l = "0 Total Run 91.60sec= 0h 1min 31sec -> 100.0% "
- names = String[]
- times = Float64[]
- regexline = r"(\d+\s+(?<name>[^\d]+)(?<secs>\d+\.\d+)sec)"
- if(occursin(regexline,l))
- m=match(regexline,l)
- append!(times, parse(Float64,m["secs"]))
- name = String(m["name"])
- println(typeof(name))
- append!(names, name)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement