<?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: Remove @company.com characters from string field in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/remove-company-com-characters-from-string-field/m-p/799514#M10417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James, I have a related problem (and it is similar to one that I've had previously&amp;nbsp;&lt;A href="https://community.esri.com/thread/204180-find-and-replace-character"&gt;https://community.esri.com/thread/204180-find-and-replace-character&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I need my responses to fit some very strict business rules regarding usernames, I was able to trim off the @companyname, but i need to replace the "." symbol between firstname.lastname, as the database strictly requires a firstname[&lt;EM&gt;space&lt;/EM&gt;]lastname format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that we previously solved a find and replace problem with some fancy footwork around changing decimals to integers, and creating a concatenated string, but this i think is a straight up find and replace problem i think. I have been trying to figure out of regex is the way to go, but put simply, my regex is atrocious!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you can help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 May 2018 05:09:08 GMT</pubDate>
    <dc:creator>DanielMcIlroy</dc:creator>
    <dc:date>2018-05-15T05:09:08Z</dc:date>
    <item>
      <title>Remove @company.com characters from string field</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/remove-company-com-characters-from-string-field/m-p/799511#M10414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;My form is capturing the username by default which is the full email address. I would like to remove the @company.com so that I'm just left with firstname.lastname in a field called 'User'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;I have looked at using an input mask, regex and a calc along the lines of&amp;nbsp;&lt;/SPAN&gt;substr(${username},-21) but haven't quite cracked it. I would imagine this would be quite a common requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The email address would always be in the same format.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions welcome!&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Arial; font-size: 11.0pt;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 03:21:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/remove-company-com-characters-from-string-field/m-p/799511#M10414</guid>
      <dc:creator>katshier</dc:creator>
      <dc:date>2017-10-13T03:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Remove @company.com characters from string field</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/remove-company-com-characters-from-string-field/m-p/799512#M10415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Katherine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sounds like your organization uses enterprise logins- technically, the `@companyname` is part of the username as ArcGIS receives it from your login system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The substr() function can be used to do this, but it requires the start and end points for the text you want to extract. &amp;nbsp;The start point is 0 (the beginning); the end point can be calculated by subtracting the length of the&amp;nbsp;&lt;SPAN&gt;`@companyname` part from the total length of username. &amp;nbsp;In your case, it looks like that part is 21&amp;nbsp;characters long; you would have&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;substr(${username}, 0, string-length(${username})-21)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 17:26:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/remove-company-com-characters-from-string-field/m-p/799512#M10415</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2017-10-13T17:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Remove @company.com characters from string field</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/remove-company-com-characters-from-string-field/m-p/799513#M10416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's great, thanks James.&amp;nbsp;That's exactly what I wanted. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 00:30:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/remove-company-com-characters-from-string-field/m-p/799513#M10416</guid>
      <dc:creator>katshier</dc:creator>
      <dc:date>2017-10-16T00:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Remove @company.com characters from string field</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/remove-company-com-characters-from-string-field/m-p/799514#M10417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James, I have a related problem (and it is similar to one that I've had previously&amp;nbsp;&lt;A href="https://community.esri.com/thread/204180-find-and-replace-character"&gt;https://community.esri.com/thread/204180-find-and-replace-character&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I need my responses to fit some very strict business rules regarding usernames, I was able to trim off the @companyname, but i need to replace the "." symbol between firstname.lastname, as the database strictly requires a firstname[&lt;EM&gt;space&lt;/EM&gt;]lastname format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that we previously solved a find and replace problem with some fancy footwork around changing decimals to integers, and creating a concatenated string, but this i think is a straight up find and replace problem i think. I have been trying to figure out of regex is the way to go, but put simply, my regex is atrocious!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you can help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 05:09:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/remove-company-com-characters-from-string-field/m-p/799514#M10417</guid>
      <dc:creator>DanielMcIlroy</dc:creator>
      <dc:date>2018-05-15T05:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Remove @company.com characters from string field</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/remove-company-com-characters-from-string-field/m-p/799515#M10418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing a replacement in the middle of the string is a bit harder. &amp;nbsp;There is a capability in beta that can address this though -&amp;nbsp;&lt;A class="link-titled" href="https://earlyadopter.esri.com/project/article/item.html?cap=e69ef91f45744b98882c651f7b518eb7&amp;amp;arttypeid={5a8e51ed-4a87-43fe-a67d-2b7829af130f}&amp;amp;artid={D2F0ED6D-1ADC-43EF-8A87-FCCF09381DB3}" title="https://earlyadopter.esri.com/project/article/item.html?cap=e69ef91f45744b98882c651f7b518eb7&amp;amp;arttypeid={5a8e51ed-4a87-43fe-a67d-2b7829af130f}&amp;amp;artid={D2F0ED6D-1ADC-43EF-8A87-FCCF09381DB3}"&gt;Welcome to our Feedback Community&lt;/A&gt;&amp;nbsp;is the link to that documentation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 16:38:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/remove-company-com-characters-from-string-field/m-p/799515#M10418</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-05-15T16:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Remove @company.com characters from string field</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/remove-company-com-characters-from-string-field/m-p/799516#M10419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please post an example of this?&amp;nbsp;&lt;/P&gt;&lt;H3 data-reactid=".237e3fooqgw.1.0" style="color: #999999; border: 0px; font-size: 20px; margin: 0px 0px 15px;"&gt;&lt;/H3&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 03:14:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/remove-company-com-characters-from-string-field/m-p/799516#M10419</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-10-18T03:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Remove @company.com characters from string field</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/remove-company-com-characters-from-string-field/m-p/1037603#M33246</link>
      <description>&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;The link you posted for this in the beta forum no longer works, is there a post now that shows this capability now that it has likely gone live?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 14:33:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/remove-company-com-characters-from-string-field/m-p/1037603#M33246</guid>
      <dc:creator>RobertAnderson3</dc:creator>
      <dc:date>2021-03-17T14:33:48Z</dc:date>
    </item>
  </channel>
</rss>

