<?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: Parsing Name out with RegEx in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Parsing-Name-out-with-RegEx/m-p/928845#M227331</link>
    <description>&lt;P&gt;Hey&amp;nbsp;@&lt;A href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/15312" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;fmvizcaino&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;The expression works if there are trailing spaces after the ending name in Field1. So in your screenshot, if you add a Data Cleansing tool first to remove trailing spaces, the expression wouldn't parse out row #2. I was able to modify the expression in order to fix this issue. See below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;(\w+)\s(\w+)\s&lt;U&gt;*&lt;/U&gt;(\w*)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I added the underlined * after the second \s, which appears to work. Thank you for your reply!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Apr 2022 15:00:13 GMT</pubDate>
    <dc:creator>kaca226_</dc:creator>
    <dc:date>2022-04-19T15:00:13Z</dc:date>
    <item>
      <title>Parsing Name out with RegEx</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Parsing-Name-out-with-RegEx/m-p/928541#M227259</link>
      <description>&lt;P&gt;I am working with patient data and am parsing a 'Patient Name' column out using RegEx. The name column is structured as followed:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LastName FirstName MiddleName/Initial(sometimes) Suffix (sometimes)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&lt;/U&gt; There are never any commas separating Last Name from First Name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Examples:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Smith John B&lt;/P&gt;&lt;P&gt;Doe Jane&amp;nbsp;&lt;/P&gt;&lt;P&gt;Smith John Brian Jr&lt;/P&gt;&lt;P&gt;Doe Jane Kate&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current RegEx works if there is a Middle Name or Middle Initial present, but will not work if a Middle Name/Initial is lacking. Can someone help make the expression dynamic to work even if there is no Middle Name/Initial? Below is my current expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(\w+)\s(\w+)\s(\w*)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. I know this can be done with a Text To Columns tool, but am trying to become more familiar with the RegEx tool.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 22:00:02 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Parsing-Name-out-with-RegEx/m-p/928541#M227259</guid>
      <dc:creator>kaca226_</dc:creator>
      <dc:date>2024-06-13T22:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing Name out with RegEx</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Parsing-Name-out-with-RegEx/m-p/928553#M227263</link>
      <description>&lt;P&gt;HEy&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/212305"&gt;@kaca226_&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just tested your expression and it is working as it should. Are you looking for a regular expression where you have a suffix but not a middle name/initial? For that you would need a list of suffix I think.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fmvizcaino_1-1650316330627.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/231597i99275EF037FBAE8D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fmvizcaino_1-1650316330627.png" alt="fmvizcaino_1-1650316330627.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Fernando Vizcaino&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 21:14:15 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Parsing-Name-out-with-RegEx/m-p/928553#M227263</guid>
      <dc:creator>fmvizcaino</dc:creator>
      <dc:date>2022-04-18T21:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing Name out with RegEx</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Parsing-Name-out-with-RegEx/m-p/928845#M227331</link>
      <description>&lt;P&gt;Hey&amp;nbsp;@&lt;A href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/15312" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;fmvizcaino&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;The expression works if there are trailing spaces after the ending name in Field1. So in your screenshot, if you add a Data Cleansing tool first to remove trailing spaces, the expression wouldn't parse out row #2. I was able to modify the expression in order to fix this issue. See below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;(\w+)\s(\w+)\s&lt;U&gt;*&lt;/U&gt;(\w*)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I added the underlined * after the second \s, which appears to work. Thank you for your reply!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 15:00:13 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Parsing-Name-out-with-RegEx/m-p/928845#M227331</guid>
      <dc:creator>kaca226_</dc:creator>
      <dc:date>2022-04-19T15:00:13Z</dc:date>
    </item>
  </channel>
</rss>

