<?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: spooky arcpy wildcards in Python Snippets Questions</title>
    <link>https://community.esri.com/t5/python-snippets-questions/spooky-arcpy-wildcards/m-p/869086#M633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One supplement to my first comment: The algorythm behind wildcard seems to be an legacy from 9.3.&lt;/P&gt;&lt;P&gt;Like in these old times upper- and lowercase are unpythonical ignored: You are free to write '*ANalySis' or '*analysis' or whatever simular you want to write &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/silly.png" /&gt;, if you are looking for '(analysis)' in fact.&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Mar 2016 15:17:23 GMT</pubDate>
    <dc:creator>LotharUlferts</dc:creator>
    <dc:date>2016-03-07T15:17:23Z</dc:date>
    <item>
      <title>spooky arcpy wildcards</title>
      <link>https://community.esri.com/t5/python-snippets-questions/spooky-arcpy-wildcards/m-p/869083#M630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.ListToolboxes()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;[u'3D Analyst Tools(3d)',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;u'Analysis Tools(analysis)',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;......&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;u'Toolbox(interactiveTools)']&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;gt;&amp;gt;&amp;gt; [i for i in arcpy.ListToolboxes() if i.endswith('analysis)')]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; [u'Analysis Tools(analysis)']&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; color: #3a0699;"&gt;So far, everythings looking good.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; color: #3a0699;"&gt;You may think: Ok,&amp;nbsp; it's little bit complicated. Why don't you use wildcards?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.ListToolboxes( '*analysis)' )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;[]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;No string ends with "analysis)"??. Did I missed something?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.ListToolboxes( '*)' )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;[]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #3a0699;"&gt;UUPS!! No string ends with ")".&amp;nbsp; Should I call my ocoulist&amp;nbsp; ??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;gt;&amp;gt;&amp;gt; ap.ListToolboxes('*analysis')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;[u'Analysis Tools(analysis)']&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;HEURECA!! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699;"&gt;Parenthesis are for ArcGIS "signs non gratia": Good enough for printing but not grand enough to receive attention by nobly arcpy-wildcards. But, thanks God!, my beloved core Python is a democratic Python and it's more logical.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 13:52:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/spooky-arcpy-wildcards/m-p/869083#M630</guid>
      <dc:creator>LotharUlferts</dc:creator>
      <dc:date>2016-03-07T13:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: spooky arcpy wildcards</title>
      <link>https://community.esri.com/t5/python-snippets-questions/spooky-arcpy-wildcards/m-p/869084#M631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works without the ')'&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy
&amp;gt;&amp;gt;&amp;gt; toolList = arcpy.ListToolboxes('*analysis')
&amp;gt;&amp;gt;&amp;gt; toolList
[u'Analysis Tools(analysis)']&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:49:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/spooky-arcpy-wildcards/m-p/869084#M631</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2021-12-12T10:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: spooky arcpy wildcards</title>
      <link>https://community.esri.com/t5/python-snippets-questions/spooky-arcpy-wildcards/m-p/869085#M632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The searchstring doesnt end with parenthesis, the result founded do. IMO it's unlogical.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 14:15:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/spooky-arcpy-wildcards/m-p/869085#M632</guid>
      <dc:creator>LotharUlferts</dc:creator>
      <dc:date>2016-03-07T14:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: spooky arcpy wildcards</title>
      <link>https://community.esri.com/t5/python-snippets-questions/spooky-arcpy-wildcards/m-p/869086#M633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One supplement to my first comment: The algorythm behind wildcard seems to be an legacy from 9.3.&lt;/P&gt;&lt;P&gt;Like in these old times upper- and lowercase are unpythonical ignored: You are free to write '*ANalySis' or '*analysis' or whatever simular you want to write &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/silly.png" /&gt;, if you are looking for '(analysis)' in fact.&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 15:17:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/spooky-arcpy-wildcards/m-p/869086#M633</guid>
      <dc:creator>LotharUlferts</dc:creator>
      <dc:date>2016-03-07T15:17:23Z</dc:date>
    </item>
  </channel>
</rss>

