cast parameters to unsigned char and terminal localhost regex without domain