Hi everybody,
I am working on a problem for which I have been unable to find a good answer out on the web. I would like to pull nine-digit strings from a string of text that is not uniform in size, content, or data arrangement. The only constant is that the string is always nine digits long. The string can be numeric or alphanumeric as shown below.
My data is as follows:
[TABLE="width: 656"]
<tbody>[TR]
[TD]Text String[/TD]
[TD]Desired Result [/TD]
[/TR]
[TR]
[TD]Req=6.0002 Ford_ 1055 BORADE STREET, 800929712 22A201 345370860*[/TD]
[TD]345370860[/TD]
[/TR]
[TR]
[TD]1200 12th Avenue, 815009780_Amazon 023135106 000000000222555561[/TD]
[TD]023135106[/TD]
[/TR]
[TR]
[TD]ATTN Rich Kelly PMT 1045612957, Amazon** New York, New York CUSIP 023135AK2[/TD]
[TD]023135AK2[/TD]
[/TR]
[TR]
[TD]ACCT:GOOGLE, ATTN Matt Johnson, 5159357660*38259PAB8 Google Mountain View_141[/TD]
[TD]38259PAB8[/TD]
[/TR]
</tbody>[/TABLE]
There may not be an exact way to do this given the differences in the way the text string data is presented and would even be interested in a partial solution if possible.
Any help offered would be greatly appreciated!
I am working on a problem for which I have been unable to find a good answer out on the web. I would like to pull nine-digit strings from a string of text that is not uniform in size, content, or data arrangement. The only constant is that the string is always nine digits long. The string can be numeric or alphanumeric as shown below.
My data is as follows:
[TABLE="width: 656"]
<tbody>[TR]
[TD]Text String[/TD]
[TD]Desired Result [/TD]
[/TR]
[TR]
[TD]Req=6.0002 Ford_ 1055 BORADE STREET, 800929712 22A201 345370860*[/TD]
[TD]345370860[/TD]
[/TR]
[TR]
[TD]1200 12th Avenue, 815009780_Amazon 023135106 000000000222555561[/TD]
[TD]023135106[/TD]
[/TR]
[TR]
[TD]ATTN Rich Kelly PMT 1045612957, Amazon** New York, New York CUSIP 023135AK2[/TD]
[TD]023135AK2[/TD]
[/TR]
[TR]
[TD]ACCT:GOOGLE, ATTN Matt Johnson, 5159357660*38259PAB8 Google Mountain View_141[/TD]
[TD]38259PAB8[/TD]
[/TR]
</tbody>[/TABLE]
There may not be an exact way to do this given the differences in the way the text string data is presented and would even be interested in a partial solution if possible.
Any help offered would be greatly appreciated!