fixed regex string for QR code scan