Deleting everything (to the end of file) after a string
Posted: Tue Sep 11, 2012 3:43 pm
Hello,
I would appreciate any Regular Expressions help for removing everything after the word "Categories:" for the following text:
Subcontractor
Buyers' Guide
Categories:
Boiler, Hot-Water Heating & Steam Fitting Contractors (C-4);
Fire Protection Contractor (C-20)
General Engineering, General Building & Specialty Contractors (ABC);
Plumbing Contractor (C-37)
Sheetmetal Contractor (C-44)
Ventilating & Air Conditioning Contractor (C-52);
Address:
1029 Ulupono Street
Honolulu, HI 96819
Phone:
808-842-5100
808-848-2703 (fax)
Contact Person:
Mr. Kent Matsuzaki
President
Email:
economyplumbing@hawaii.rr.com
Type of Work
Performed:
Air Conditioning, Plumbing, Steam Piping, Fire Sprinkler, Air Conditioning Service, Refrigeration Piping, welding
Location of Work
Performed:
Oahu
Contractor
License #(s):
BC-318, C-4, C-37, C-52, C-20
I would appreciate any Regular Expressions help for removing everything after the word "Categories:" for the following text:
Subcontractor
Buyers' Guide
Categories:
Boiler, Hot-Water Heating & Steam Fitting Contractors (C-4);
Fire Protection Contractor (C-20)
General Engineering, General Building & Specialty Contractors (ABC);
Plumbing Contractor (C-37)
Sheetmetal Contractor (C-44)
Ventilating & Air Conditioning Contractor (C-52);
Address:
1029 Ulupono Street
Honolulu, HI 96819
Phone:
808-842-5100
808-848-2703 (fax)
Contact Person:
Mr. Kent Matsuzaki
President
Email:
economyplumbing@hawaii.rr.com
Type of Work
Performed:
Air Conditioning, Plumbing, Steam Piping, Fire Sprinkler, Air Conditioning Service, Refrigeration Piping, welding
Location of Work
Performed:
Oahu
Contractor
License #(s):
BC-318, C-4, C-37, C-52, C-20