Coda doesnât have a great way to do this at the moment. We can Find() text, but we donât have an officially supported formula for changing the style of that text. There is a hidden formula that will let us do this, but these might disappear at anytime. So itâs a use at your own risk example hereâŚ
Hereâs a solution that can match phrases. Itâs a multi-step one though. Also it should be a more robust one than the one above, since it doesnât split the text by every word but only wherever necessary to then stitch it back.
It uses a hidden RegexExtract formula; it supports flags so instead of using Lower() elsewhere I just set it up to work as case-insensitive.
Hey @Paul_Danyliuk, thank you so much for this amazing doc, all this Regex stuff is really black magic for me.
Your version is almost perfect for my use-case, the only thing that doesnât work as I would expect is that matches are also found even if the keyword in the text has some spaces in between.
For example the keyword âDanâ would produce a match in âhow I didnât adD ANything extraâ.
Do you think it is possible to adapt the Regex formula to solve this?
I tried with Claude and ChatGPT but didnât manage to make it work.