<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Extract string from between two other strings in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/extract-string-from-between-two-other-strings/m-p/6157#M2714</link>
    <description>&lt;P&gt;This will work with the snippet provided, but without knowing the rest of the string I can't promise it will always work.&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;message.scan(/\"ErrorMessage\\\":\\\"(.*?)\\\",/)&lt;/LI-CODE&gt;&lt;P&gt;I recommend parsing the API response instead, so this comes across as an actual data pill.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Feb 2024 18:11:59 GMT</pubDate>
    <dc:creator>gary1</dc:creator>
    <dc:date>2024-02-22T18:11:59Z</dc:date>
    <item>
      <title>Extract string from between two other strings</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/extract-string-from-between-two-other-strings/m-p/6156#M2713</link>
      <description>&lt;P&gt;In a recipe, there is an error that is being returned in a datapill from an API call.&lt;BR /&gt;I want to extract just the error "text".&lt;BR /&gt;&lt;BR /&gt;Here is a snippet of the string that is being returned:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;,\"ErrorMessage\":\"Item KL65512 is not valid\",&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;I want to end up with:&lt;BR /&gt;&lt;STRONG&gt;Item KL65512 is not valid&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I was looking at .scan, but I cannot seem to get the correct syntax to achieve what I am looking for.&lt;BR /&gt;Any help is appreciated.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Feb 2024 17:58:55 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/extract-string-from-between-two-other-strings/m-p/6156#M2713</guid>
      <dc:creator>klandry</dc:creator>
      <dc:date>2024-02-22T17:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Extract string from between two other strings</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/extract-string-from-between-two-other-strings/m-p/6157#M2714</link>
      <description>&lt;P&gt;This will work with the snippet provided, but without knowing the rest of the string I can't promise it will always work.&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;message.scan(/\"ErrorMessage\\\":\\\"(.*?)\\\",/)&lt;/LI-CODE&gt;&lt;P&gt;I recommend parsing the API response instead, so this comes across as an actual data pill.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 18:11:59 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/extract-string-from-between-two-other-strings/m-p/6157#M2714</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2024-02-22T18:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Extract string from between two other strings</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/extract-string-from-between-two-other-strings/m-p/6158#M2715</link>
      <description>&lt;P&gt;Thank you Gary. The snippet that I provided is unique in the string so I avoided posting the entire string.&lt;BR /&gt;I had gotten close to what you are suggesting and both seem to product the desired outcome.&lt;BR /&gt;.scan(/ErrorMessage\\\"\:\\\"([^\"]+)\\\"/)&lt;/P&gt;&lt;P&gt;The API response is available in the form of a datapill, but I could not find a way to get just that text without REGEX.&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 18:33:44 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/extract-string-from-between-two-other-strings/m-p/6158#M2715</guid>
      <dc:creator>klandry</dc:creator>
      <dc:date>2024-02-22T18:33:44Z</dc:date>
    </item>
  </channel>
</rss>

