This macro is just one of over a dozen that I'm working on as part of an effort to automate a huge part of my fledgling business. I'm not any kind of a programmer, so it's been a steep learning curve. Fortunately for me, this forum is full of very knowledgeable people whom I have stolen countless ideas from. Of course, I still have so much to learn.
So, I was wondering if anyone could help me figure this out.
I'm using a regex to search text formatted thusly:
RE/MAX Website URL:%<<RE/MAX Website URL>>%
As you can see, each entry will be formatted
Thing Name:%About Thing% (the <<>> are tags that get replaced by other data. The "%"s are there to make it easier to capture the text between them since it could be absolutely anything spanning more that one line.
I want to take each line entry and break it up into its two parts for further manipulation.
First Name:%<<First Name>>%
gets broken up into
First Name" and "
The macro then sets, creating if needded, the variable "
First Name" to the text, "
Where I'm a little stuck is on making the macro get and process each match.
I have two questions:
- Where am I going wrong with this approach?
- Is there a simpler way that I'm just not seeing?
Please bear in mind before commenting that I will never admit to how much time I spent fiddling with regular expressions in order to produce the one you see here.
Thanks in advance, Guys.
Keyboard Maestro “03)Link - Load Variables” Macro
03)Link - Load Variables.kmmacros (5.4 KB)