Help with Code (Extracting House Number / Initials)

Welcome to the Make community!

To do this, you can use the built-in function:

  • replace
    replace(text; search string; replacement string)

This function may have also been covered in the Make Academy tutorials — refer to the Make Academy Course Overview to learn more.

Here’s an example of how you can use this function with a regular expression pattern:

{{ replace(1.text; "/\s*(?:(?<=\d)+\s[\w\W]+?$|(?:(?<=[A-Za-z])\w+\s?)+)\s*/i"; emptystring) }}
(copy-paste the above into the field, or type it exactly as shown)

Hope this helps! Let me know if there are any further questions or issues.

@samliew
P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!