I have a large list in a text file (roughly 900 items) and I want to do a few things to the list. First, I want to remove everything after a space on each line, including the spaces themselves. Then, I want to remove every line that does not have the either of these formats:
- ***kAA**
- ***kA**
My Computer
- Computer type
- PC/Desktop
- Computer Manufacturer/Model Number
- custom build
- OS
- Windows 7 Home Premium 64bit
- CPU
- AMD Phenom II X4 965 AM3 3.4Ghz 512KB 45NM 125W 4000MHZ
- Motherboard
- GIGABYTE GA-990FXA-UD3 AM3+ AMD 990FX SATA 6Gb/s USB 3.0 ATX
- Memory
- Mushkin 997008 DDR3 UDIMM (2x4GB) 8GB PC3-14900 1866MHZ 9-10
- Graphics Card(s)
- HIS Radeon HD 7870 2 GB (256-Bit) GDDR5 2x Mini-Displayport
- Monitor(s) Displays
- Dell U2414H, Dell E2014H
- Screen Resolution
- 16:9 1920x1080, 16:9 1600x900
- Hard Drives
- Kingston HyperX 3K 120 GB SATA III 2.5-Inch 6.0 Gb/s Solid State Drive SH103S3/120G
- Keyboard
- Some old PS/2 one
- Mouse
- USB Kensignton
- Internet Speed
- 5Mb/s Download, 1Mb/s Upload
- Antivirus
- Avast! Free Antivirus
- Browser
- Mozilla Firefox