I currently have a single file that has nearly 10000 lines of text in it. Each section that I want is broken up like so -
Chapter 1: Chapter 1
TEXT GOES HERE
Chapter 2: Chapter 2
TEXT GOES HERE
Chapter 3: Chapter 3
TEXT GOES HERE
I want to break up each chapter so that I save a file like 01.tex, 02.tex, and 03.tex that contains all of that text for that chapter. Is there a way to regex through the file and make a save for each chapter?