Subj : Re: Finding a set of numbers within a String To : comp.programming From : pemo Date : Mon Oct 10 2005 02:50 pm You could use the Split function - something like this: dim s as string: s = "1. 45.7j.L9" dim slast as string dim sa() as string sa = split(s, ".") slast = sa(ubound(sa)) <- might need a -1 there? BTW, you say these values are hex, but j, L, g etc aren't valid? "RayKnight" wrote in message news:4664c180bb1caf9aa11217d5d8903359@localhost.talkaboutprogramming.com... > Lets say I have a set of randomly generated hexadecimal numbers. Say... > > 1. 45.7j.L9 > 2. 51.3g.D4 > 3. 67.99.62 > > I want to find out the last two numbers of the randomly generated > hexadecimal numbers. How do I do that? I know in C++, you can simply > use... > > string monkey = "dynamic" ; > if (monkey[2] == "n" && monkey[3] == "a") > { > etc etc ; > } > > But is there such a function in Visual Basic? I heard of a command using > *, but is there a reference or anything I can use? > > References and links would be helpful, thank you. > .