<?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: Double Quote in Label Expression in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334286#M3626</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, I attempted to reference my first posting above as an example (30" PVC Pipe Drain),&amp;nbsp; in correlation with your posted py parser and it didn't appear to do anything. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course I may not be applying it correctly? It runs but does not change anything at this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import re &lt;/P&gt;&lt;P&gt;def FindLabel([NAME]): &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return re.sub(r"""\b(30'' PVC Pipe Drain|30''Drain.)\Z""", &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '30 in', [NAME])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other helpful info maybe?&amp;nbsp; Field Name = [NAME] and the text string in question&amp;nbsp; 30'' PVC Pipe Drain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Dec 2014 15:40:57 GMT</pubDate>
    <dc:creator>mneer</dc:creator>
    <dc:date>2014-12-18T15:40:57Z</dc:date>
    <item>
      <title>Double Quote in Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334278#M3618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to get my label expression to work here.&amp;nbsp; The problem is some of my table&lt;/P&gt;&lt;P&gt;records have a double quote in it (" symbol).&amp;nbsp; I want to rename as such see example below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(&lt;STRONG&gt;30" PVC Pipe Drain&lt;/STRONG&gt;)&amp;nbsp; and rename it to (&lt;STRONG&gt;30 inch&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the following vbScript - but get nowhere:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function FindLabel ( [NAME] )&lt;/P&gt;&lt;P&gt;If Not IsNull([NAME]) Then&lt;/P&gt;&lt;P&gt; NewStr = Replace([NAME], "30'' PVC Pipe Drain", "30 inch")&lt;/P&gt;&lt;P&gt;&amp;nbsp; FindLabel = NewStr&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; --- also I tried python and get nowhere:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def FindLabel ( [NAME] &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; S = [NAME]&lt;/P&gt;&lt;P&gt;&amp;nbsp; S = S.replace( '30'' Drain, Vitreous Clay Pipe', '30 in')&lt;/P&gt;&lt;P&gt;&amp;nbsp; return S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 15:00:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334278#M3618</guid>
      <dc:creator>mneer</dc:creator>
      <dc:date>2014-12-18T15:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Double Quote in Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334279#M3619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you replace temporary the " for another sign for example ºº and then replace again?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 15:05:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334279#M3619</guid>
      <dc:creator>Miguel_AngelBarrientos_Martíne</dc:creator>
      <dc:date>2014-12-18T15:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Double Quote in Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334280#M3620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello M. Neer,&lt;/P&gt;&lt;P&gt;As a quick fix, you could export the attribute table to a databasefile.dbf and work on it from a standalone table to remove the quotation ("). then you could bring it back into arcGIS and join it to your shapefile.shp. Not as quick as code but it works!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 15:06:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334280#M3620</guid>
      <dc:creator>JamesFitzgerald</dc:creator>
      <dc:date>2014-12-18T15:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Double Quote in Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334281#M3621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 15:06:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334281#M3621</guid>
      <dc:creator>mneer</dc:creator>
      <dc:date>2014-12-18T15:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Double Quote in Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334282#M3622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P class="codeblockdesc"&gt;&lt;/P&gt;&lt;P&gt;Replace 'St' or 'St.' starting a new word at the end of the string with the word 'Street'.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;EM&gt;Expression:&lt;/EM&gt; update_street(!ADDRESS!) 
 
&lt;EM&gt;Expression Type:&lt;/EM&gt; PYTHON_9.3 
 
&lt;EM&gt;Code Block:&lt;/EM&gt; 
import re 
def update_street(street_name): 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return re.sub(r"""\b(St|St.)\Z""", 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Street', street_name) 

Check &lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000004s000000" title="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000004s000000" rel="nofollow noopener noreferrer" target="_blank"&gt;ArcGIS Desktop&lt;/A&gt; under Regular Expressions. &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:50:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334282#M3622</guid>
      <dc:creator>JamesFitzgerald</dc:creator>
      <dc:date>2021-12-11T15:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Double Quote in Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334283#M3623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that is a valid idea but I had forgotten to mention&lt;BR /&gt;earlier that &lt;/P&gt;&lt;P&gt;this is a source feature&amp;nbsp; from our enterprise and I don't wish to &lt;/P&gt;&lt;P&gt;copy or manipulate the data in any way.&amp;nbsp;&amp;nbsp; My&lt;BR /&gt;intention is to re-label&lt;/P&gt;&lt;P&gt;on the fly dynamically. &lt;BR /&gt;Copying the data and pointing to copied source&lt;/P&gt;&lt;P&gt;is what I am attempting to avoid here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 15:13:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334283#M3623</guid>
      <dc:creator>mneer</dc:creator>
      <dc:date>2014-12-18T15:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Double Quote in Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334284#M3624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using VBScript....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Replace( [Name],chr(34)," inch")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No advance script or block needed.&amp;nbsp; --- Tested it with null values no issues..... if you simply want to replace " --&amp;gt; inch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re reading you question If you want to shorten your label then you would need an advanced expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Function FindLabel ( [Name]&amp;nbsp;&amp;nbsp; )
dblQuote = instr( [Name] ,chr(34))
if dblQuote &amp;gt; 0 then
&amp;nbsp;&amp;nbsp; newStr = left( [Name] ,dblQuote - 1) &amp;amp; " inch"
else
&amp;nbsp;&amp;nbsp; newStr = [Name]
end if
&amp;nbsp; FindLabel = newStr
End Function&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:50:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334284#M3624</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2021-12-11T15:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Double Quote in Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334285#M3625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To make all quotes turn into " inch" your VB Script label code should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 14.3999996185303px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #000000;"&gt;Function FindLabel ( [NAME] )&lt;/P&gt;&lt;P style="font-size: 14.3999996185303px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #000000;"&gt;&amp;nbsp; If Not IsNull([NAME]) Then&lt;/P&gt;&lt;P style="font-size: 14.3999996185303px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NewStr = Replace([NAME], "''"", " inch")&lt;/P&gt;&lt;P style="font-size: 14.3999996185303px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FindLabel = NewStr&lt;/P&gt;&lt;P style="font-size: 14.3999996185303px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #000000;"&gt;&amp;nbsp; End If&lt;/P&gt;&lt;P style="font-size: 14.3999996185303px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #000000;"&gt;End Function&lt;/P&gt;&lt;P style="font-size: 14.3999996185303px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 14.3999996185303px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #000000;"&gt;This assumes no quote character in your data is a real quote character and always changes to inch.&amp;nbsp; If that is true, you should not have to deal with the full field value in your features, just the quote character.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 15:39:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334285#M3625</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2014-12-18T15:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Double Quote in Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334286#M3626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, I attempted to reference my first posting above as an example (30" PVC Pipe Drain),&amp;nbsp; in correlation with your posted py parser and it didn't appear to do anything. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course I may not be applying it correctly? It runs but does not change anything at this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import re &lt;/P&gt;&lt;P&gt;def FindLabel([NAME]): &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return re.sub(r"""\b(30'' PVC Pipe Drain|30''Drain.)\Z""", &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '30 in', [NAME])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other helpful info maybe?&amp;nbsp; Field Name = [NAME] and the text string in question&amp;nbsp; 30'' PVC Pipe Drain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 15:40:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334286#M3626</guid>
      <dc:creator>mneer</dc:creator>
      <dc:date>2014-12-18T15:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Double Quote in Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334287#M3627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;M.Neer,&lt;/P&gt;&lt;P&gt;Another quick fix is to start an edit session, open up the attribute table, click on the table options&amp;nbsp; and select the find and replace. Replace the (") with nothing (just leave blank). Save. I am still looking to do this through Python.&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 15:54:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334287#M3627</guid>
      <dc:creator>JamesFitzgerald</dc:creator>
      <dc:date>2014-12-18T15:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Double Quote in Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334288#M3628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent !&amp;nbsp;&amp;nbsp; So very close.&amp;nbsp; Need to drop all the text AFTER the word inch.&amp;nbsp; When I attempt to &lt;/P&gt;&lt;P&gt;use LEFT() it reverts back to " double quote so I know we are close here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function FindLabel ( [NAME] )&lt;/P&gt;&lt;P&gt;If Not IsNull([NAME]) Then&lt;/P&gt;&lt;P&gt; NewStr = Replace([Name],chr(34)," inch")&lt;/P&gt;&lt;P&gt;&amp;nbsp; FindLabel = NewStr&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Was (&lt;STRONG&gt;30" PVC Pipe Drain&lt;/STRONG&gt;) and now is (&lt;STRONG&gt;30 inch PVC Pipe Drain&lt;/STRONG&gt;&lt;STRONG&gt;30" PVC Pipe Drain&lt;/STRONG&gt;) just need to drop text&lt;/P&gt;&lt;P&gt;PVC Pipe Drain.&amp;nbsp;&amp;nbsp; Perhaps compound it with LEFT()?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 16:04:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334288#M3628</guid>
      <dc:creator>mneer</dc:creator>
      <dc:date>2014-12-18T16:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Double Quote in Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334289#M3629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;M.Neer,&lt;/P&gt;&lt;P&gt;Sorry, but replace INCH not blank. I going to use your code. Excellent Job!!&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 16:09:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334289#M3629</guid>
      <dc:creator>JamesFitzgerald</dc:creator>
      <dc:date>2014-12-18T16:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Double Quote in Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334290#M3630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should have included that detail in your description of what you were trying to do, since dropping text is a completely different issue.&amp;nbsp; So Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 14.3999996185303px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #000000;"&gt;Function FindLabel ( [NAME] )&lt;/P&gt;&lt;P style="font-size: 14.3999996185303px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #000000;"&gt;&amp;nbsp; If Not IsNull([NAME]) Then&lt;/P&gt;&lt;P style="font-size: 14.3999996185303px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NewStr = [Name]&lt;/P&gt;&lt;P style="font-size: 14.3999996185303px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Instr(NewStr, chr(34)) &amp;gt; 0 Then&lt;/P&gt;&lt;P style="font-size: 14.3999996185303px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NewStr = Left(NewStr, Instr(NewStr, chr(34)))&lt;/P&gt;&lt;P style="font-size: 14.3999996185303px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P style="font-size: 14.3999996185303px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NewStr = Replace(NewStr, chr(34), " inch")&lt;/P&gt;&lt;P style="font-size: 14.3999996185303px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FindLabel = NewStr&lt;/P&gt;&lt;P style="font-size: 14.3999996185303px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #000000;"&gt;&amp;nbsp; End If&lt;/P&gt;&lt;P style="font-size: 14.3999996185303px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #000000;"&gt;End Function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 16:11:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334290#M3630</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2014-12-18T16:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Double Quote in Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334291#M3631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I edited my previous post to remove quote (really skipping over it ) and shorten the label&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 16:14:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334291#M3631</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2014-12-18T16:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Double Quote in Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334292#M3632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Caught that and fixed it in my post just before I saw your reply.&amp;nbsp; Retry the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 16:34:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334292#M3632</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2014-12-18T16:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Double Quote in Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334293#M3633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"&lt;STRONG&gt;Thank You&lt;/STRONG&gt;" Ted &amp;amp; Richard. Both your suggestions have worked for me - hope they work for other GIS users. Very much appreciated!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 16:40:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334293#M3633</guid>
      <dc:creator>mneer</dc:creator>
      <dc:date>2014-12-18T16:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Double Quote in Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334294#M3634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, You have hooked me. Now, I cannot get it to work. I used your code. Do you post the code in the code block? What do you enter into the "Name=" block? Do you have to create another field to populate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 16:56:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334294#M3634</guid>
      <dc:creator>JamesFitzgerald</dc:creator>
      <dc:date>2014-12-18T16:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Double Quote in Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334295#M3635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem Richard please see snapshot below and here is the code that worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function FindLabel ( [Name]&amp;nbsp;&amp;nbsp; )&amp;nbsp; &lt;/P&gt;&lt;P&gt;dblQuote = instr( [Name] ,chr(34))&amp;nbsp; &lt;/P&gt;&lt;P&gt;if dblQuote &amp;gt; 0 then&amp;nbsp; &lt;/P&gt;&lt;P&gt;newStr = left( [Name] ,dblQuote - 1) &amp;amp; " inch"&amp;nbsp; &lt;/P&gt;&lt;P&gt;else&amp;nbsp; &lt;/P&gt;&lt;P&gt;newStr = [Name]&amp;nbsp; &lt;/P&gt;&lt;P&gt;end if&amp;nbsp; &lt;/P&gt;&lt;P&gt;FindLabel = newStr&amp;nbsp; &lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ExpressionLabel_Error.jpg" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/41812_ExpressionLabel_Error.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 17:03:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334295#M3635</guid>
      <dc:creator>mneer</dc:creator>
      <dc:date>2014-12-18T17:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Double Quote in Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334296#M3636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am an old vb guy struggling to learn python..... for the challenge I attempted to get a python script to work as well.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bear in mind this is probably sloppy python but it works....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def FindLabel ([TestChar]):
&amp;nbsp; str = [TestChar]
&amp;nbsp; i = str.find(chr(34))
&amp;nbsp; if i &amp;gt; 0:
&amp;nbsp;&amp;nbsp;&amp;nbsp; newStr = str[:i] + " inch"
&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newStr = str
&amp;nbsp; return newStr&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:50:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334296#M3636</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2021-12-11T15:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Double Quote in Label Expression</title>
      <link>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334297#M3637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The code has been written to work as an Advanced Label Expression, not as a field calculation.&amp;nbsp; For a field calculation I would write it like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parser:&amp;nbsp; VB Script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Codeblock:&amp;nbsp; Checked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pre-Logic Codeblock:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Output = [NAME]
dblQoute = instr(Output, chr(34))
if dblQuote &amp;gt; 0 Then&amp;nbsp; Output = Left(Output, dblQuote - 1) &amp;amp; " inch"&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAME= Output&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:50:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/double-quote-in-label-expression/m-p/334297#M3637</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2021-12-11T15:50:20Z</dc:date>
    </item>
  </channel>
</rss>

