fix regexp thanks to excellent review comment by squib