<?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: Arcade &amp;amp; Python: Using &amp;quot;illegal&amp;quot; characters like &amp;quot;\&amp;quot; in Replace in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/arcade-amp-python-using-quot-illegal-quot/m-p/1032879#M5780</link>
    <description>&lt;P&gt;I don't know for sure, but I bet you have to use an escape character or rather I bet the&amp;nbsp; \&amp;nbsp; is being interpreted as an escape character. Have you tried '\\' yet? I think that should escape the backslash if I recall.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.freecodecamp.org/news/escape-sequences-python/" target="_blank" rel="noopener"&gt;https://www.freecodecamp.org/news/escape-sequences-python/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://linuxconfig.org/list-of-python-escape-sequence-characters-with-examples" target="_blank"&gt;https://linuxconfig.org/list-of-python-escape-sequence-characters-with-examples&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Mar 2021 15:10:41 GMT</pubDate>
    <dc:creator>MPach</dc:creator>
    <dc:date>2021-03-04T15:10:41Z</dc:date>
    <item>
      <title>Arcade &amp; Python: Using "illegal" characters like "\" in Replace</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-amp-python-using-quot-illegal-quot/m-p/1032867#M5777</link>
      <description>&lt;P&gt;Good morning all,&lt;/P&gt;&lt;P&gt;I have some URL fields with different facing "\" "/" slashes that need to be lined up to "/". When using arcade in a web map to try and Replace "\" , "/", the \ is invalid and cannot be replaced. This makes it so the expression can't complete itself with red ' and black end ).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 354px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7489i76E68B0CBD0E4F1A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Basically I have URL text like BS\09802098&lt;SPAN&gt;.pdf that needs to end up BS/09802098.p&lt;/SPAN&gt;&lt;SPAN&gt;df. I also tried this on ArcPro end with python and received similar issues.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 14:46:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-amp-python-using-quot-illegal-quot/m-p/1032867#M5777</guid>
      <dc:creator>BrendonJoyce1</dc:creator>
      <dc:date>2021-03-04T14:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade &amp; Python: Using "illegal" characters like "\" in Replace</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-amp-python-using-quot-illegal-quot/m-p/1032875#M5778</link>
      <description>&lt;P&gt;!CARDURL!.replace("\\", "/")&amp;nbsp; &amp;nbsp;# python&lt;/P&gt;&lt;P&gt;if CARDURL is a field name&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 14:59:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-amp-python-using-quot-illegal-quot/m-p/1032875#M5778</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-03-04T14:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade &amp; Python: Using "illegal" characters like "\" in Replace</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-amp-python-using-quot-illegal-quot/m-p/1032876#M5779</link>
      <description>&lt;P&gt;I think you need to specify '\\' so the backslash is properly returned&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Replace($feature.CARDURL, '\\', '/')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 14:59:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-amp-python-using-quot-illegal-quot/m-p/1032876#M5779</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-03-04T14:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade &amp; Python: Using "illegal" characters like "\" in Replace</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-amp-python-using-quot-illegal-quot/m-p/1032879#M5780</link>
      <description>&lt;P&gt;I don't know for sure, but I bet you have to use an escape character or rather I bet the&amp;nbsp; \&amp;nbsp; is being interpreted as an escape character. Have you tried '\\' yet? I think that should escape the backslash if I recall.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.freecodecamp.org/news/escape-sequences-python/" target="_blank" rel="noopener"&gt;https://www.freecodecamp.org/news/escape-sequences-python/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://linuxconfig.org/list-of-python-escape-sequence-characters-with-examples" target="_blank"&gt;https://linuxconfig.org/list-of-python-escape-sequence-characters-with-examples&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 15:10:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-amp-python-using-quot-illegal-quot/m-p/1032879#M5780</guid>
      <dc:creator>MPach</dc:creator>
      <dc:date>2021-03-04T15:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade &amp; Python: Using "illegal" characters like "\" in Replace</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-amp-python-using-quot-illegal-quot/m-p/1032891#M5781</link>
      <description>&lt;P&gt;look at my python example... the first \ is escaping the second \, so \\ means replace \ with /&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 15:12:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-amp-python-using-quot-illegal-quot/m-p/1032891#M5781</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-03-04T15:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade &amp; Python: Using "illegal" characters like "\" in Replace</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-amp-python-using-quot-illegal-quot/m-p/1032920#M5782</link>
      <description>&lt;P&gt;Thanks all, \\ works in replace!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 16:25:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-amp-python-using-quot-illegal-quot/m-p/1032920#M5782</guid>
      <dc:creator>BrendonJoyce1</dc:creator>
      <dc:date>2021-03-04T16:25:59Z</dc:date>
    </item>
  </channel>
</rss>

