<?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 Text.BetweenDelimiters function, bug or user error? in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/Text-BetweenDelimiters-function-bug-or-user-error/m-p/3395258#M110313</link>
    <description>&lt;P&gt;Greetings all,&lt;/P&gt;&lt;P&gt;I’m nesting the Text.BetweenDelimiters function within a Text.Select function and I’m getting a result that looks wrong. It looks like the BetweenDelimiters function is not working property; is this a bug or am I not understanding how the BetweenDelimiters works?&lt;/P&gt;&lt;P&gt;I’m trying to extract inbound ocean container IDs (from a SharePoint calendar if it matters). Those container IDs are surrounded by a dash at the front and an open paren after the ID. Hence, extraction between delimiters “-“, “(“.&lt;/P&gt;&lt;P&gt;That works great when both delimiters are present, I am indeed getting my container ID.&lt;/P&gt;&lt;P&gt;However, I believe that where there is no second delimiter, a null result should come back; &lt;STRONG&gt;all those “56pallets” should be null, yes?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Why is the Text.BetweenDelimiters function happy to ignore the absence of the second, enclosing delimiter?&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code might be hard to read in the screen snip, here is the text of the code:&lt;BR /&gt;&lt;BR /&gt;= Table.AddColumn(#"Changed Type1", "Container ID", each&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Text.Select&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(Text.BetweenDelimiters([Event Title], "-", "(" ),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{"a".."z", "A".."Z", "0".."9"})&lt;BR /&gt;&amp;nbsp; &amp;nbsp;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2023 16:06:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-08-23T16:06:41Z</dc:date>
    <item>
      <title>Text.BetweenDelimiters function, bug or user error?</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Text-BetweenDelimiters-function-bug-or-user-error/m-p/3395258#M110313</link>
      <description>&lt;P&gt;Greetings all,&lt;/P&gt;&lt;P&gt;I’m nesting the Text.BetweenDelimiters function within a Text.Select function and I’m getting a result that looks wrong. It looks like the BetweenDelimiters function is not working property; is this a bug or am I not understanding how the BetweenDelimiters works?&lt;/P&gt;&lt;P&gt;I’m trying to extract inbound ocean container IDs (from a SharePoint calendar if it matters). Those container IDs are surrounded by a dash at the front and an open paren after the ID. Hence, extraction between delimiters “-“, “(“.&lt;/P&gt;&lt;P&gt;That works great when both delimiters are present, I am indeed getting my container ID.&lt;/P&gt;&lt;P&gt;However, I believe that where there is no second delimiter, a null result should come back; &lt;STRONG&gt;all those “56pallets” should be null, yes?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Why is the Text.BetweenDelimiters function happy to ignore the absence of the second, enclosing delimiter?&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code might be hard to read in the screen snip, here is the text of the code:&lt;BR /&gt;&lt;BR /&gt;= Table.AddColumn(#"Changed Type1", "Container ID", each&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Text.Select&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(Text.BetweenDelimiters([Event Title], "-", "(" ),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{"a".."z", "A".."Z", "0".."9"})&lt;BR /&gt;&amp;nbsp; &amp;nbsp;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 16:06:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Text-BetweenDelimiters-function-bug-or-user-error/m-p/3395258#M110313</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-23T16:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Text.BetweenDelimiters function, bug or user error?</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Text-BetweenDelimiters-function-bug-or-user-error/m-p/3396711#M110381</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then nest your formula with if Text.Contains functions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like if the Event Title contains "-" and "(" then your nested&amp;nbsp; formula else, null&lt;/P&gt;
&lt;P&gt;You think that will work for you?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 10:07:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Text-BetweenDelimiters-function-bug-or-user-error/m-p/3396711#M110381</guid>
      <dc:creator>mussaenda</dc:creator>
      <dc:date>2023-08-24T10:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Text.BetweenDelimiters function, bug or user error?</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Text-BetweenDelimiters-function-bug-or-user-error/m-p/3397143#M110397</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="109818" data-lia-user-login="mussaenda" class="lia-mention lia-mention-user"&gt;mussaenda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":party_popper:"&gt;🎉&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":clapping_hands:"&gt;👏&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":party_popper:"&gt;🎉&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;= Table.AddColumn(#"Changed Type1", "Container ID", each&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if Text.Contains ([Event Title], "-") and Text.Contains ([Event Title], "(") then&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Text.Select&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (Text.BetweenDelimiters([Event Title], "-", "(" ),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {"a".."z", "A".."Z", "0".."9"})&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else null)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 13:38:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Text-BetweenDelimiters-function-bug-or-user-error/m-p/3397143#M110397</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-24T13:38:27Z</dc:date>
    </item>
  </channel>
</rss>

