federente Posted September 14, 2004 Posted September 14, 2004 hi, I've a problem. I want to use a regEx to match a complete line/row and put one or two 6-digit-numbers in one or two references. the line may look like this: anytext 04 blabla123456-fgrsdg3idfhvriuegfe333333 or anytext----333333rghreughfroidvho I need the 6digit-number(s) I tried a lot of possibilities, (see my thread from yesterday) my problem is that the numbers can occur, but must'nt. but If they occur, I want them both. I tried so many variations of regExes, nothing worked well .. maybe someone has an idea? thanks Quote
georgepatotk Posted September 15, 2004 Posted September 15, 2004 I am not sure about you question, but i write a simple text searching code for u, hope that it could help u. DIm str as string = "jkfdshafjkhds123456fdsjkfkdjhjkfds333333" If str.indexof("123456") >= 0 then messagebox.show("Found") Else messagebox.show("Not found") ENd sub Quote George C.K. Low
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.