<?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>Picking a string out of a text field and making it upper case.</title><link>https://www.infopathdev.com:443/forums/thread/102488.aspx</link><pubDate>Tue, 12 May 2015 15:10:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102488</guid><dc:creator>rjj88</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102488.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=102488</wfw:commentRss><description>&lt;p&gt;Hi all.. My first&amp;nbsp;of what will probably&amp;nbsp;many, many&amp;nbsp;noob-question posts.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Can anyone suggest how to select a specific word and make it upper case?&lt;br /&gt;E.g. A rich text field contains a block of text&amp;nbsp;in which&amp;nbsp;my surname appears&amp;nbsp;twice - can I make those two instances of my surname upper case?&lt;/p&gt;&lt;p&gt;Additionally, if my surname is entered in another &amp;#39;SURNAME_field&amp;#39;, can it be referenced in the function so, perhaps, someone else&amp;#39;s name could be used?&lt;br /&gt;&lt;br /&gt;I&amp;#39;m sure it&amp;#39;s possible with a lengthy function, but I&amp;#39;m not clued up enough to build one!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;PS. - I found lots of questions&amp;nbsp;being answered about making all text in a field upper case, or just capitalizing the first letter using the functions below, but not picking out a specific string.&lt;/p&gt;&lt;p&gt;1) Convert all to uppercase: &lt;br /&gt;translate(., &amp;quot;abcdefghijklmnopqrstuvwxyz&amp;quot;, &amp;quot;ABCDEFGHIJKLMNOPQRSTUVWXYZ&amp;quot;) &lt;/p&gt;&lt;p&gt;2) Convert first letter to uppercase: &lt;br /&gt;concat(substring(translate(., &amp;quot;abcdefghijklmnopqrstuvwxyz&amp;quot;, &amp;quot;ABCDEFGHIJKLMNOPQRSTUVWXYZ&amp;quot;), 1, 1), substring(., 2, string-length(.) - 1)) &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>