Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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

George C.K. Low

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...