This kind of "Search with Regular Expression" error happens because there's no match to the pattern you are searching for -- how you handle that depends on whether that matters!
If you are happy to have the capture group variable not be set -- so it retains its previously set value, or remains "empty" if not previously used -- you can simply turn off "Failure Aborts Macro" in the action's Options. In this example I've left "Notify on Failure" on so you can see it does indeed fail:
If you run it as-is you'll see that the search errors and Local__theWord retains its previous value. If you disable the first action so Local__theWord is never set you'll see it resolves to an empty string in the "Display" action.
So you could use this method -- either directly if you are happy to have an empty string, or by testing "If...Local__theWord is empty" and doing something based on that:
If you want something more "formal" you can use a "Try/Catch" block. Note that in this case you leave "Failure Aborts Macro" enabled and it's the "Try" block that catches the error and stops the macro from aborting -- you don't even get a notification:
I’ve never noticed that @ccstone even though I search the wiki a lot. This is a tip that’ll just save me even more time by reducing the endless lists of search hits I always seem to get😀 great advice re Google search too. Thanks!