# QR Code Processing ## QR Code Processing QR Code Processing enables Remote Pro to parse QR codes regardless of their format by using Regular Expressions. Data from the QR code can be mapped to Breeze tokens and commands, making it possible to integrate with third-party systems that generate non-Breeze QR codes. > **Info** > > You do not need QR Code Processing if your QR codes are already in Breeze-compatible format (e.g. codes made in Breeze Cloud). --- ### Setup Enable **Scan QR codes for strings** and **Scan QR codes for commands** in Photobooth Settings, then click **QR Code Processing...** ![Rp qr processing](https://www.breezesoftware.com/media/remote-pro-qr-code-processing/remote-pro-qr-code-processing-42b33475e9.webp) --- Click **Add Entry**, select a **Type** from the dropdown, enter a **Regular Expression**, and assign a **Value**. Test your regex by entering data in the **QR Test String** field and pressing **Test**. ![Rp qr add entry](https://www.breezesoftware.com/media/remote-pro-qr-code-processing/remote-pro-qr-code-processing-9abdc4f74a.webp) --- ### Types Extracted data is mapped to a Type, which determines what happens with it: ![Rp qr processing type](https://www.breezesoftware.com/media/remote-pro-qr-code-processing/remote-pro-qr-code-processing-9288120cca.webp) --- | Type | Description | | --- | --- | | `{qr1}` – `{qr30}` | Save data to a string token for use in print layouts, filenames, etc. | | `es1` – `es5` | Save data to an Event String | | `email`, `autoEmail`, `email cc` | Save email address and send emails | | `text`, `autoText` | Save phone number and send SMS messages | | `c1` – `c5` | Trigger a touchscreen action | --- ### Regular Expressions The regular expression must match the whole QR string. To extract specific data, use capture groups. > **Info** > > Use the [Regex GPT helper](https://chatgpt.com/share/68aed78b-cf2c-800a-861f-919f00fd0902) for assistance creating regular expressions. --- ### Value The Value field stores extracted capture group data using `{1}`, `{2}` etc. for each capture group. For command types, the value sets the command to execute. --- ### Testing Enter test data in the **QR Test String** field and press **Test** to see pattern matches and mapped results. ![Rp rp qr testing](https://www.breezesoftware.com/media/remote-pro-qr-code-processing/remote-pro-qr-code-processing-46c7aa241b.webp) --- ### Examples #### Example 1 — Trigger a Photo Session from Any QR Code **Type:** c1 | **Regex:** `(.*)` | **Value:** `photoStart` ![Rp qr example 1c](https://www.breezesoftware.com/media/remote-pro-qr-code-processing/remote-pro-qr-code-processing-2112650bcd.webp) --- #### Example 2 — Extract First and Last Name **Type:** qr1 | **Regex:** `firstname=([^&]*)&lastname=([^&]*)&email=([^&]*)&id=(.*)` | **Value:** `{1} {2}` ![Example 2 test result](https://www.breezesoftware.com/media/remote-pro-qr-code-processing/remote-pro-qr-code-processing-bd0950fab3.webp) --- #### Example 3 — Switch Profile Based on 5th Character **Type:** c1 | **Regex:** `(.{4})(.)(.*)` | **Value:** `Profile{2}` ![Example 3 test result](https://www.breezesoftware.com/media/remote-pro-qr-code-processing/remote-pro-qr-code-processing-70141fa0fa.webp) --- #### Example 4 — Multiple Entries: Trigger Session, Extract Name, Email, and ID Use four separate entries for the same QR code: 1. **c1** / `(.*)` / `photoStart` — trigger photo session 2. **qr1** / `firstname=([^&]*)&lastname=([^&]*)&email=([^&]*)&id=(.*)` / `{1} {2}` — store full name 3. **autoEmail** / same regex / `{3}` — auto-send email 4. **qr2** / same regex / `{4}` — store unique ID ![Example 4 with all four entries](https://www.breezesoftware.com/media/remote-pro-qr-code-processing/remote-pro-qr-code-processing-7b87f1ccc5.webp) --- ### Import and Export Use the **Import** and **Export** buttons to save and load your regex configurations as a file. --- Source: https://www.breezesoftware.com/help/remote-pro/remote-pro-qr-code-processing