I’m pretty sure this is beyond what BBEdit can do for me by itself, and into the realm of scripting, but BBEdit never ceases to amaze.
I have a large file. I’d like to find instances of a particular regular expression in the file, and then split it into multiple files, where each new file should
- Start with one of the occurrences of the regular expression
- Continue up to but not including the next occurrence of the regular expression
- Have a name created by doing a grep susbitution on the regular expression.
Any suggestions?
Thanks,
Neil Faiman
p.s. I know that I could script this easily enough, but the total number of times I’m going to have to do this is small enough that any effort invested in scripting would outweigh the time it’s going to take me to do it manually.