is it worth capturing the compiled regex  into the state to avoid this every line, via ``re:compile/2``