<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/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>Visual Basic .NET</title><link>http://forums.asp.net/36.aspx</link><description>Discussions/Questions about the Visual Basic .NET language. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=14&amp;c=23" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: str.split() help</title><link>http://forums.asp.net/thread/3265163.aspx</link><pubDate>Mon, 29 Jun 2009 21:21:50 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3265163</guid><dc:creator>RatheeshC</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3265163.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3265163</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;To extract the number from &amp;quot;images/test/89&amp;quot;&amp;nbsp; try this&lt;/p&gt;
&lt;p&gt;string mystr = &amp;quot;images/test/89&amp;quot;;&lt;/p&gt;
&lt;p&gt;string Id = mystr.Substring(mystr.LastIndexOf(&amp;quot;/&amp;quot;) + 1);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To extract the &amp;quot;.jpg&amp;quot; try this&lt;/p&gt;
&lt;p&gt;mystr = &amp;quot;lddmen.jpg&amp;quot;;&lt;br /&gt;string ext = mystr.Substring( mystr.IndexOf(&amp;quot;.&amp;quot;));&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Re: str.split() help</title><link>http://forums.asp.net/thread/3265141.aspx</link><pubDate>Mon, 29 Jun 2009 21:00:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3265141</guid><dc:creator>jeffiec</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3265141.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3265141</wfw:commentRss><description>&lt;p&gt;&lt;span class="" style="FONT-SIZE:x-small;COLOR:#0000ff;FONT-FAMILY:;"&gt;&lt;span class="" style="FONT-SIZE:x-small;COLOR:#0000ff;FONT-FAMILY:;"&gt;
&lt;p&gt;Dim &lt;span class="" style="FONT-SIZE:x-small;FONT-FAMILY:;"&gt;trmst &lt;/span&gt;&lt;span class="" style="FONT-SIZE:x-small;COLOR:#0000ff;FONT-FAMILY:;"&gt;&lt;span class="" style="FONT-SIZE:x-small;COLOR:#0000ff;FONT-FAMILY:;"&gt;As&lt;/span&gt;&lt;/span&gt;&lt;span class="" style="FONT-SIZE:x-small;FONT-FAMILY:;"&gt; &lt;/span&gt;&lt;span class="" style="FONT-SIZE:x-small;COLOR:#0000ff;FONT-FAMILY:;"&gt;&lt;span class="" style="FONT-SIZE:x-small;COLOR:#0000ff;FONT-FAMILY:;"&gt;Char&lt;/span&gt;&lt;/span&gt;&lt;span class="" style="FONT-SIZE:x-small;FONT-FAMILY:;"&gt;() = {&lt;/span&gt;&lt;span class="" style="FONT-SIZE:x-small;COLOR:#a31515;FONT-FAMILY:;"&gt;&lt;span class="" style="FONT-SIZE:x-small;COLOR:#a31515;FONT-FAMILY:;"&gt;&amp;quot;.&amp;quot;c&lt;/span&gt;&lt;/span&gt;&lt;span class="" style="FONT-SIZE:x-small;FONT-FAMILY:;"&gt;, &lt;/span&gt;&lt;span class="" style="FONT-SIZE:x-small;COLOR:#a31515;FONT-FAMILY:;"&gt;&lt;span class="" style="FONT-SIZE:x-small;COLOR:#a31515;FONT-FAMILY:;"&gt;&amp;quot;j&amp;quot;c&lt;/span&gt;&lt;/span&gt;&lt;span class="" style="FONT-SIZE:x-small;FONT-FAMILY:;"&gt;, &lt;/span&gt;&lt;span class="" style="FONT-SIZE:x-small;COLOR:#a31515;FONT-FAMILY:;"&gt;&lt;span class="" style="FONT-SIZE:x-small;COLOR:#a31515;FONT-FAMILY:;"&gt;&amp;quot;p&amp;quot;c&lt;/span&gt;&lt;/span&gt;&lt;span class="" style="FONT-SIZE:x-small;FONT-FAMILY:;"&gt;, &lt;/span&gt;&lt;span class="" style="FONT-SIZE:x-small;COLOR:#a31515;FONT-FAMILY:;"&gt;&lt;span class="" style="FONT-SIZE:x-small;COLOR:#a31515;FONT-FAMILY:;"&gt;&amp;quot;g&amp;quot;c&lt;/span&gt;&lt;/span&gt;&lt;span class="" style="FONT-SIZE:x-small;FONT-FAMILY:;"&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;imagename&amp;nbsp;= imagename.TrimEnd(trmst)&lt;/p&gt;
&lt;p&gt;that got the first part working, tryed remove to remove the dir path and got this error.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="" style="FONT-SIZE:x-small;FONT-FAMILY:;"&gt;
&lt;p&gt;id&amp;nbsp;= id.Remove(0, 20)&lt;/p&gt;&lt;/span&gt;
&lt;p&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;
&lt;p&gt;Index and count must refer to a location within the string. Parameter name: count&lt;/p&gt;
&lt;p&gt;&lt;span class="" style="FONT-SIZE:x-small;COLOR:#0000ff;FONT-FAMILY:;"&gt;After searching, it apears that it reads it as empty? how can it be empty?&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: str.split() help</title><link>http://forums.asp.net/thread/3264859.aspx</link><pubDate>Mon, 29 Jun 2009 17:57:31 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3264859</guid><dc:creator>jeffiec</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3264859.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3264859</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;works great! thank you, &lt;br /&gt;now i need to strip the 89 off of &amp;quot;images/featured/89&amp;quot; this could be 1, 2, 3 or even 4 numbers, so the qualifier would be the 2nd &amp;quot;/&amp;quot; ?&lt;br /&gt;also need to strip &amp;quot;.jpg&amp;quot; off the 2nd string, &amp;quot;.&amp;quot; as the qualifier?&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;
&lt;p&gt;imagename&amp;nbsp;= imagename.Substring(imagename.TrimEnd(&amp;quot;.jpg&amp;quot;))&lt;br /&gt;doesnt seem to work&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;thanks again for help so far. :)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: str.split() help</title><link>http://forums.asp.net/thread/3264499.aspx</link><pubDate>Mon, 29 Jun 2009 14:59:44 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3264499</guid><dc:creator>ramireddyindia</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3264499.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3264499</wfw:commentRss><description>&lt;p&gt;string mystr = &amp;quot;images/test/89lddmen.jpg&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string ImageName = mystr.Substring(mystr.IndexOf(&amp;quot;ld&amp;quot;));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string Id = mystr.Substring(mystr.LastIndexOf(&amp;quot;/&amp;quot;)+1).Replace(ImageName, &amp;quot;&amp;quot;);&lt;/p&gt;</description></item><item><title>str.split() help</title><link>http://forums.asp.net/thread/3264394.aspx</link><pubDate>Mon, 29 Jun 2009 14:12:11 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3264394</guid><dc:creator>jeffiec</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3264394.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3264394</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I need to split up a string to get some string data, string like &amp;quot;images/test/89lddmen.jpg&amp;quot;.&lt;/p&gt;
&lt;p&gt;there will always be number at the beginning, anywhere between 1 and 5000, the first two characters after the number will always begin with&amp;quot;ld&amp;quot;, so i can always look for those two chars to split, only thing is i can get it to work.&lt;/p&gt;
&lt;p&gt;dim mystr as string&lt;br /&gt;dim strar() as string&lt;br /&gt;mystr=&amp;quot;images/test/89lddmen.jpg&amp;quot;&lt;br /&gt;strar.split(mystr,&amp;#39;ld&amp;#39;)&lt;/p&gt;
&lt;p&gt;expected results would be:&lt;br /&gt;strar(0)=&amp;quot;89&amp;quot;&lt;br /&gt;strat(1)=&amp;quot;lddmen.jpg&amp;quot;&lt;/p&gt;
&lt;p&gt;then need to trim the &amp;quot;.jpg&amp;quot; off the end :D&lt;br /&gt;dont think im forming it corectly though or not too sure of the overflow.&lt;/p&gt;
&lt;p&gt;thanks in advance.&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>