<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to select a substring from a text field</title><link>https://www.infopathdev.com:443/forums/thread/117641.aspx</link><pubDate>Tue, 14 Nov 2017 15:51:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117641</guid><dc:creator>sclark55</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117641.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=117641</wfw:commentRss><description>that got it.  thanks.</description></item><item><title>Re: How to select a substring from a text field</title><link>https://www.infopathdev.com:443/forums/thread/117639.aspx</link><pubDate>Tue, 14 Nov 2017 15:22:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117639</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117639.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=117639</wfw:commentRss><description>You just want the username portion of the string? jdoe? That would be substring-after(txtField, &amp;quot;\&amp;quot;) because you only have one &amp;quot;\&amp;quot; in the string.....</description></item><item><title>How to select a substring from a text field</title><link>https://www.infopathdev.com:443/forums/thread/117638.aspx</link><pubDate>Tue, 14 Nov 2017 12:38:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117638</guid><dc:creator>sclark55</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117638.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=117638</wfw:commentRss><description>I am new to InfoPath so if did not ask the question correctly I apologize.

I have text text field that has the following text in it &amp;quot;i:o#.w|nsna\jdoe&amp;quot;.   I believe this field has the user name in it, domain\username. I want to take the user name of jdoe and put it in another text field.   I have setup a rule that has a condition &amp;quot;txtField contains &amp;quot;nsna\&amp;quot;, a rule type of Action

set a field&amp;#39;s value txtField2 = concat(substring-before(txtField,&amp;quot;nsna\&amp;quot;), substring-after(txtField, &amp;quot;nsna\&amp;quot;))

but it does work.  Can anyone help?   Thanks.</description></item></channel></rss>