As much as I enjoy sharing my thoughts on the user generated software/automation space, there's really only so much I can say! A lot of you seem to come here for more tactical knowledge which is something I love sharing. So here's a first stab at sharing more practical tips & learning from my favourite tools.
Let me know what you prefer, should I share more or less of these?
Regex in Airtable
Airtable recently added the option to use regular expressions in the formula field. It went under the radar but it's a pretty big deal!
So first, what are regular expressions?
Regular expressions are a way to search for patterns in strings or text. You may be familiar with text functions in formulas in Airtable (and their equivalencies in sheets) such as "Find", "Left", "Mid" etc. These text functions help you (find), extract (left, right, mid) or replace (replace) substrings. This is extremely useful in sanitizing data, formatting strings the way you need them etc.
They can help you answer questions like "Is there an @ in this email address" or "give me every letter until the first space"?
You'll notice that in each of these formulas, you need to input the substring you're looking for (or use a combination of "length" and "find" to extract substrings).
With those functions, it's not possible to know whether a pattern is present. You can't identify something like "Is there text between two dots?" or "Is this URL valid?". With regex you can identify, replace or extract based on string patterns.
For instance, you can say "are the letters a,b,c present separated by at most one character" as seen here:
This will return true for "a1b1c" but false for "a11b1c" and "abc". You can see how this gets complicated pretty fast (what if it can only be separated by specific characters? Separated by a few characters? More complex patterns?).
I am in fact a regex neophyte but luckily there's Stack Overflow where you can get the answer to most things you're looking for. For example, I was looking for a way to validate URLs (which Airtable doesn't do even in URL fields) and found this thread which suggests the following regular expression which I obviously would never figure out on my own:
[caption align="alignnone" width="980"]
But now, all I have to do is copy paste that into a regex_match formula and voila:
[caption align="alignnone" width="980"]
Some additional resources on regex:
- 20 minute introduction into regex
- Rubular.com to test your regular expression
Are you using regular expressions? Are you going to use them?
Zapier loops
Zapier loops is in beta! For now, it looks limited to looping on simple arrays but you can imagine this is the beginning of Zapier closing the gap on one of the main differentiating of every other automation tool: working with multiple inputs.
Andrew Davison, Zapier expert, had the scoop:
I haven't had proper time to play around with it but I'm excited to see where this is going and will write about it once I've dug in.
Best
Aron
Thanks to Stephen O'Grady (@orishnal) for reviewing this newsletter every week before it reaches your inbox!