I'm trying to call TextSoap and run a series of regex sequences.
I'm stuck at my last regex. I have an ingredients list the I parse using regex replacement statements. My last regex would run on any item that begins with a character and is not a vulgar fraction or a digit. So per the example I only wish to affect the line starting with Black.
Black pepper, ground fresh from the mill
½ cup dry Marsala wine
1½ lbs veal scaloppine
Possibly too shallow for your needs, but as I often see the irregular steps in the surface of the bark and forget the trees, offered as an easily-dismissed queffort.
Yes, the bees in the forest contract things. The dance is complex enuf. That's "quick effort'.
PCRE requires that lookbehinds be a regular width, but it appears that the ICU regex flavor allows irregular widths – as TextSoap, Keyboard Maestro, CotEditor, and Script Debugger 8 work with that syntax.
Echoing others -- why can you not just prefix every line that begins with a letter with two tabs? In KM terms (and adding an extra "to be processed" line for good measure):
If that does work then your first regex looks over-complicated too -- why not (?m)^([^a-zA-Z])+\s+([^\s]+)\s replacing with \1\t\2\t ? Putting it all together:
Thanks for the insights. Your Macro looks great. I will surely try to tuck in the rest of the data processes that need to be accomplished for a nice tight solution.
My Regex knowledge is based on lots of trial and error since its not in my wheelhouse.