<?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: Substring after a last special character</title><link>https://www.infopathdev.com:443/forums/thread/20194.aspx</link><pubDate>Fri, 25 May 2007 20:33:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20194</guid><dc:creator>anotherchrisberry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20194.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=20194</wfw:commentRss><description>&lt;p&gt;Is the length of the substring variable? If it&amp;#39;s always two or three characters, you could use something like this:&lt;br /&gt;&lt;br /&gt;substring-after(substring(ID, (string-length(ID)-3)), &amp;quot;-&amp;quot;)&lt;/p&gt;</description></item><item><title>Re: Substring after a last special character</title><link>https://www.infopathdev.com:443/forums/thread/20166.aspx</link><pubDate>Fri, 25 May 2007 08:50:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20166</guid><dc:creator>Mancha</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20166.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=20166</wfw:commentRss><description>&lt;p&gt;Thanks for your replies.&amp;nbsp;&lt;/p&gt;&lt;p&gt;The length of the string is variable. I have to get the substring after the last character (&amp;quot;-&amp;quot;) in a rule. &lt;/p&gt;&lt;p&gt;Via code I know how can I solve this problem but via rule I don&amp;#39;t know.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Substring after a last special character</title><link>https://www.infopathdev.com:443/forums/thread/20138.aspx</link><pubDate>Wed, 23 May 2007 19:35:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20138</guid><dc:creator>erinselena</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20138.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=20138</wfw:commentRss><description>&lt;p&gt;You could use the LastIndexOf method of the string to find the position of the last &amp;quot;-&amp;quot; and then use the substring method to get the string from the last index to the end of the string.. here is an example.&lt;/p&gt;&lt;p&gt;string test = T123-ABC-DEF-GHI-JKL-CC;&lt;/p&gt;&lt;font size="2"&gt;&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;int&lt;/font&gt;&lt;font size="2"&gt; position = test &lt;/font&gt;&lt;font size="2"&gt;.LastIndexOf(&amp;nbsp;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;-&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; );&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; temp = test .Substring( position ); // you may have to say position + 1 here not sure.&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;int&lt;/font&gt;&lt;font size="2"&gt; position = test &lt;/font&gt;&lt;font size="2"&gt;.LastIndexOf(&amp;nbsp;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;-&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; );&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; temp = test .Substring( position ); // you may have to say position + 1 here not sure.&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; temp = test .Substring( position ); // you may have to say position + 1 here not sure.&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;</description></item><item><title>Re: Substring after a last special character</title><link>https://www.infopathdev.com:443/forums/thread/20135.aspx</link><pubDate>Wed, 23 May 2007 18:59:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20135</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20135.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=20135</wfw:commentRss><description>&lt;p&gt;Are there always the same number of characters or the same number of &amp;quot;-&amp;quot;?&lt;/p&gt;&lt;p&gt;If so you could use the substring length or nested substring-after functions.&lt;/p&gt;&lt;p&gt;There are quite a few examples on the site here.&lt;/p&gt;</description></item><item><title>Substring after a last special character</title><link>https://www.infopathdev.com:443/forums/thread/20124.aspx</link><pubDate>Wed, 23 May 2007 15:19:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20124</guid><dc:creator>Mancha</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20124.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=20124</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;&lt;p&gt;I have an field ID (sample T123-ABC-DEF-GHI-JKL-CC). How can I get the substring afte the last character &amp;quot;-&amp;quot;? I need the substring &amp;quot;CC&amp;quot;.&lt;/p&gt;&lt;p&gt;Thank for your help.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>