<?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: Using Field Calculator to Add/Complete a Hyperlink in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/using-field-calculator-to-add-complete-a-hyperlink/m-p/1177364#M55550</link>
    <description>&lt;P&gt;If they are hyperlinks (like a URL) you should use forward slashes.&lt;/P&gt;&lt;P&gt;If they are files instead forward slashes will always work but if you really want to use backslashes you either need to use the "r" thing with python like mystring=r"\\server\dir\file.png" or double them up like mystring="\\\\server\\dir\\file.png".&lt;/P&gt;&lt;P&gt;This is because "\" means "the next thing is special" for example "\t" is a TAB character or "\n" is a NEWLINE and "\\" is a BACKSLASH character.&lt;/P&gt;&lt;P&gt;Using replace you would do something like this&lt;/P&gt;&lt;P&gt;s = r"\thisisthestring"&lt;/P&gt;&lt;P&gt;s = s.replace(r"\", r"\\")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 May 2022 21:51:50 GMT</pubDate>
    <dc:creator>Brian_Wilson</dc:creator>
    <dc:date>2022-05-25T21:51:50Z</dc:date>
    <item>
      <title>Using Field Calculator to Add/Complete a Hyperlink</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-field-calculator-to-add-complete-a-hyperlink/m-p/1177360#M55549</link>
      <description>&lt;P&gt;I am trying to populate the hyperlinks for photos of assets that my work maintains. When trying to Field Calc all of the HyperLink cell values for the selected rows to the root folder of all the photos, '\\bccstm01\Technical Services\Stormwater Asset Photos\', it left out the first backward slash. When trying to field calc in the additional backslash using the Python 3 replace( , ) expression I am left with no changes made.&lt;/P&gt;&lt;P&gt;Is there a recommended/suggested workaround for this issue?&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 20:57:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-field-calculator-to-add-complete-a-hyperlink/m-p/1177360#M55549</guid>
      <dc:creator>DerekWood</dc:creator>
      <dc:date>2022-05-25T20:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using Field Calculator to Add/Complete a Hyperlink</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-field-calculator-to-add-complete-a-hyperlink/m-p/1177364#M55550</link>
      <description>&lt;P&gt;If they are hyperlinks (like a URL) you should use forward slashes.&lt;/P&gt;&lt;P&gt;If they are files instead forward slashes will always work but if you really want to use backslashes you either need to use the "r" thing with python like mystring=r"\\server\dir\file.png" or double them up like mystring="\\\\server\\dir\\file.png".&lt;/P&gt;&lt;P&gt;This is because "\" means "the next thing is special" for example "\t" is a TAB character or "\n" is a NEWLINE and "\\" is a BACKSLASH character.&lt;/P&gt;&lt;P&gt;Using replace you would do something like this&lt;/P&gt;&lt;P&gt;s = r"\thisisthestring"&lt;/P&gt;&lt;P&gt;s = s.replace(r"\", r"\\")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 21:51:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-field-calculator-to-add-complete-a-hyperlink/m-p/1177364#M55550</guid>
      <dc:creator>Brian_Wilson</dc:creator>
      <dc:date>2022-05-25T21:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using Field Calculator to Add/Complete a Hyperlink</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-field-calculator-to-add-complete-a-hyperlink/m-p/1177510#M55564</link>
      <description>&lt;P&gt;Thank you for explaining this so well! I have done some coding in other languages, but I am unfamiliar with Python so I was unaware of my programming error in there.&lt;/P&gt;&lt;P&gt;I ran the update successfully utilizing the expression:&amp;nbsp;!HyperLink!.replace(r"\b",r"\\b")&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 13:15:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-field-calculator-to-add-complete-a-hyperlink/m-p/1177510#M55564</guid>
      <dc:creator>DerekWood</dc:creator>
      <dc:date>2022-05-26T13:15:46Z</dc:date>
    </item>
  </channel>
</rss>

