Extract an ID using regex

  1. Add a Text Input
  2. Add a Paragraph

The structure should look similar to:
image

  1. Click on Paragraph -> Dynamic Attributes plus icon

  2. Choose Display -> Inner Text

  3. Select the lightning bolt
    image

  4. Under Data Bindings select value
    image

  5. Click on the Data Formatter button

  6. In Data Formats right-click test1.value -> Manipulation -> Split
    image

  7. Indata Formats choose Character and under the Parameter Properties type v=

This gives us an array of two strings, a string to the left of v= and a string to the right of v=, both strings separated by a comma. What we need to do is grab the second string.

  1. In Data Formats right click Split and choose Array -> Last
    image

  2. In Data Formats choose Count and under Parameter Properties enter 1 (or true) for Count and choose Select

  3. In Data Bindings choose Select

  4. Save your document. The code should be similar to
    image

That’s it. Test it in the browser.

3 Likes