I am trying to write a program using Visual Basic.Net / 6.0 that will search through a very long piece of text pasted into a text-box.
Inside the text-box are patterns of numbers like this, representing a file number
12345-123456
12345-123456-1234
1234
and patterns of numbers with letters like this, representing the location code
01R05AA02F
The above represents one occurrence of possibly hundreds in a single document. Between the file number and the location code is extraneous information that needs to be separated from the file number and the location code.
My approach at first was to delete the extraneous information from the text-box. After some time of debatable progress, I decided to try the opposite – pull the desired information into a new text-box. Getting hung up here also.
I have been trying various string manipulations, Find, Like, Instr, IndexOf, etc… I feel like I am on the right track but my Monday morning deadline is rapidly approaching and stress has begun to surface.
I was hoping someone may be able to lend me some wisdom, please.
Inside the text-box are patterns of numbers like this, representing a file number
12345-123456
12345-123456-1234
1234
and patterns of numbers with letters like this, representing the location code
01R05AA02F
The above represents one occurrence of possibly hundreds in a single document. Between the file number and the location code is extraneous information that needs to be separated from the file number and the location code.
My approach at first was to delete the extraneous information from the text-box. After some time of debatable progress, I decided to try the opposite – pull the desired information into a new text-box. Getting hung up here also.
I have been trying various string manipulations, Find, Like, Instr, IndexOf, etc… I feel like I am on the right track but my Monday morning deadline is rapidly approaching and stress has begun to surface.
I was hoping someone may be able to lend me some wisdom, please.