Parsing a .gro file

Glad to help! The regex makes for short code, but its usually not the fastest way.
The function I proposed is also not typestable (@code_warntype splitLine("asdf")), this is better:

function splitLine(s)
    rx = r"^(\d+)(\D+) +(\D+\d) *(\d+) +([\d.]+) +([\d.]+) +([\d.]+) *$"
    mc = match(rx,s).captures
    (resid=parse(Int,mc[1]),
    resname=String(mc[2]),
    atomname=String(mc[3]),
    atomid=parse(Int,mc[4]),
    r=parse.(Float64,mc[5:7]))
end