<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Searching a String</title><link>https://www.infopathdev.com:443/forums/thread/25149.aspx</link><pubDate>Mon, 17 Dec 2007 21:21:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25149</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25149.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=25149</wfw:commentRss><description>&lt;p&gt;It sounds like you need a windows script which will go through all of your documents and rename them if needed.&lt;/p&gt;
&lt;p&gt;Another option is this Watch directory tool which I have used before.&amp;nbsp; It can do renaming with replacement. You would maybe have to copy files to a folder and then back but it has a&amp;nbsp;30 day&amp;nbsp;trial period so you can install and test immediately.&amp;nbsp; &lt;a href="http://www.watchdirectory.net/"&gt;http://www.watchdirectory.net&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Searching a String</title><link>https://www.infopathdev.com:443/forums/thread/25147.aspx</link><pubDate>Mon, 17 Dec 2007 20:48:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25147</guid><dc:creator>mhudsonjr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25147.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=25147</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Well this is my problem.&amp;nbsp; For example, I have some forms that are saved as &amp;quot;Doe, John.xml&amp;quot; and &amp;quot;Doe, Jane .xml&amp;quot;.&amp;nbsp; Due to a mistake in the Save and Close code, some forms have a space before the &amp;quot;.xml&amp;quot;.&amp;nbsp; And I have like 20,000 forms in my library so to go through each one is not to much of an option.&amp;nbsp; I can get the filename in JScript by doing the XDocument.URI.&amp;nbsp; But I was wondering if there was an easy way to see if the string contains a &amp;quot; &amp;quot; before the &amp;quot;.xml&amp;quot;.&amp;nbsp; Does this make sense?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Searching a String</title><link>https://www.infopathdev.com:443/forums/thread/25146.aspx</link><pubDate>Mon, 17 Dec 2007 20:40:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25146</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25146.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=25146</wfw:commentRss><description>&lt;p&gt;I do this quite often using the built in InfoPath functions string-before and string-after. These can be nested to do about whatever you want.&amp;nbsp; Unfortunately, I am not sure what the Jscript equivalents would be.&lt;/p&gt;
&lt;p&gt;Can you do it within Infopath instead of code? Often you can set up a rule that will just validate the value and if needed strip spaces or whatever.&lt;/p&gt;</description></item><item><title>Searching a String</title><link>https://www.infopathdev.com:443/forums/thread/25145.aspx</link><pubDate>Mon, 17 Dec 2007 20:08:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25145</guid><dc:creator>mhudsonjr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25145.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=25145</wfw:commentRss><description>&lt;p&gt;I would like to be able to search a string in JScript.&amp;nbsp; For example, I would like to be able to search a string for a space, and I will also know what the characters are after the space.&amp;nbsp; For example,&amp;nbsp; say i have a string &amp;quot;Testing.&amp;quot; and another string &amp;quot;Testing .&amp;quot;&amp;nbsp; I would like to be able to search to find out if there is a space before the period.&amp;nbsp; Any ideas? thanks&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>