I have a rather funky text file, in which most of the information runs in columns and one portion runs in a row:
I need to search the text file for all MSO Names, Unit Address, Phone, Etc, as well as the number that comes before [DC2] and then place all results in a spreadsheet.
Is the best way to accomplish this through regular expressions? I searched the web, but can't find what i need. Can someone provide suggestions or sites?
Thank you.
Code:
Unit address / Type / Name | | Authorization Tier Mask
------------------------------ --------
000-03136-65330-122 DC2 Cat epoch # 045, ID 0606 00800000000000000000000000000000000000000000000
( 511- 256)
COLUMBUS Blackouts enabled
Reg 002, Post 43212
Ratings region 000
Time zone -300, DST
Unit Group 0
Virtual Network 0
Multiport Upd disabled
MSO NAME: Oxon Hill
UNIT ADDRESS: 03136-65330
HEADEND PHONE NUMBER: 999-999-9999
CITY: COLUMBUS
STATE: VA
SERVICE: XYZ EAST
I need to search the text file for all MSO Names, Unit Address, Phone, Etc, as well as the number that comes before [DC2] and then place all results in a spreadsheet.
Is the best way to accomplish this through regular expressions? I searched the web, but can't find what i need. Can someone provide suggestions or sites?
Thank you.