<?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: Extracting specific data from string</title><link>https://www.infopathdev.com:443/forums/thread/43085.aspx</link><pubDate>Wed, 17 Jun 2009 11:41:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43085</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43085.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=43085</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Mike,&lt;/p&gt;&lt;p&gt;Please see the attached InfoPath 2007 form template. The default values of the fields will answer your question on parsing your RAW field. :) &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Extracting specific data from string</title><link>https://www.infopathdev.com:443/forums/thread/43045.aspx</link><pubDate>Tue, 16 Jun 2009 22:16:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43045</guid><dc:creator>mikewoodld</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43045.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=43045</wfw:commentRss><description>&lt;p&gt;Hi!&lt;/p&gt;&lt;p&gt;Currently working on a database/form for a silent auction (DB is in Access, data is inputted into InfoPath). Want to be able to use our credit card swiper to gather the name and address information from our bidder&amp;#39;s drivers licenses. I&amp;#39;m having a problem trying to get the form to intrepret the data correctly.&lt;/p&gt;&lt;p&gt;&amp;nbsp;First, I have a field named RAW - this is where the raw swipe data goes.&lt;/p&gt;&lt;p&gt;here is a sample of the data gathered:&lt;/p&gt;&lt;p&gt;&lt;i&gt;%FLCITY^DOE$JOHN$MIDDLE^STREET^ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; ?;6360101816355689201=1206198999010=?&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;I am able to grab the state without any problems because it will always be two characters:&lt;/p&gt;&lt;p&gt;&lt;i&gt;substring(@RAW, 2, 2)&lt;/i&gt;&lt;/p&gt;&lt;p&gt;The rest is where I run into problems, because (of course) the city, street, and first/last/middle names are always different lengths. the string of data at the end ? - ? can be discarded.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I would think that it would be easy enough to do because of the ^$ - should be able to just select the text between character&amp;nbsp; 3 and the first ^, which would equal CITY&lt;/p&gt;&lt;p&gt;Text between the first ^ and the first $ would equal LASTNAME&lt;/p&gt;&lt;p&gt;Text between the first $ and last $ would equal FIRSTNAME&lt;/p&gt;&lt;p&gt;and so on.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any suggestions/code?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;&lt;p&gt;Mike &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>