<?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: Help removing part of text from a string for popup in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/help-removing-part-of-text-from-a-string-for-popup/m-p/1390756#M6967</link>
    <description>&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;This ended up working for me&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mid&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Hyperlink&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;24)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Create an expression and then set up the hyperlink to be the website + this expression&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2024 21:20:35 GMT</pubDate>
    <dc:creator>Laura</dc:creator>
    <dc:date>2024-03-04T21:20:35Z</dc:date>
    <item>
      <title>Help removing part of text from a string for popup</title>
      <link>https://community.esri.com/t5/developers-questions/help-removing-part-of-text-from-a-string-for-popup/m-p/1390457#M6963</link>
      <description>&lt;P&gt;Here is an example of the links in my attribute table&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Laura_0-1709568276517.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96751i3198C8882EFCB570/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Laura_0-1709568276517.png" alt="Laura_0-1709568276517.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some start with R some with mceas01. Either way I want to keep whatever comes after "R:/" or "\\mcenas01\" using arcade in a popup. I tried calling support but claimed they could not help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 16:05:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/help-removing-part-of-text-from-a-string-for-popup/m-p/1390457#M6963</guid>
      <dc:creator>Laura</dc:creator>
      <dc:date>2024-03-04T16:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help removing part of text from a string for popup</title>
      <link>https://community.esri.com/t5/developers-questions/help-removing-part-of-text-from-a-string-for-popup/m-p/1390483#M6964</link>
      <description>&lt;P&gt;You could do an if else statement- and then use the &lt;A href="https://developers.arcgis.com/arcade/function-reference/text_functions/#right" target="_self"&gt;Right Function&lt;/A&gt;&amp;nbsp;with a 3 for the R:/ and a 11 for the&amp;nbsp;&lt;SPAN&gt;\\mcenas01\ ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 16:31:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/help-removing-part-of-text-from-a-string-for-popup/m-p/1390483#M6964</guid>
      <dc:creator>VanessaSimps</dc:creator>
      <dc:date>2024-03-04T16:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help removing part of text from a string for popup</title>
      <link>https://community.esri.com/t5/developers-questions/help-removing-part-of-text-from-a-string-for-popup/m-p/1390544#M6965</link>
      <description>&lt;P&gt;The right function says it gets values at the end of the link. This changes so it won't work for me&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 17:28:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/help-removing-part-of-text-from-a-string-for-popup/m-p/1390544#M6965</guid>
      <dc:creator>Laura</dc:creator>
      <dc:date>2024-03-04T17:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help removing part of text from a string for popup</title>
      <link>https://community.esri.com/t5/developers-questions/help-removing-part-of-text-from-a-string-for-popup/m-p/1390562#M6966</link>
      <description>&lt;P&gt;You can use the &lt;A href="https://developers.arcgis.com/arcade/function-reference/text_functions/#replace" target="_self"&gt;Replace&lt;/A&gt; function to get rid of those strings, but you have to be careful. The Arcade interprets a backslash as part of an escape character, so you have to use it twice in Replace for it to work properly. This will replace either in a single line.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var output = Replace(Replace($feature.Hyperlink,'\\\\mcenas01\\',''),'R:\\','');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 17:38:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/help-removing-part-of-text-from-a-string-for-popup/m-p/1390562#M6966</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2024-03-04T17:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help removing part of text from a string for popup</title>
      <link>https://community.esri.com/t5/developers-questions/help-removing-part-of-text-from-a-string-for-popup/m-p/1390756#M6967</link>
      <description>&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;This ended up working for me&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mid&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Hyperlink&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;24)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Create an expression and then set up the hyperlink to be the website + this expression&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 21:20:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/help-removing-part-of-text-from-a-string-for-popup/m-p/1390756#M6967</guid>
      <dc:creator>Laura</dc:creator>
      <dc:date>2024-03-04T21:20:35Z</dc:date>
    </item>
  </channel>
</rss>

