update buildtool, trim doc line by regex (optional)