commands replaced with regexp