Email article link to actual article link

Welcome to the Make community!

You can use a Text Parser “Match Pattern” module with this Pattern (regular expression):

<link rel="canonical" href="(?<canonical>.+?)"

Screenshot_2024-08-21_150817


For more information, see Text Parser in the Make Help Center:

Match Pattern
The Match pattern module enables you to find and extract string elements matching a search pattern from a given text. The search pattern is a regular expression (aka regex or regexp), which is a sequence of characters in which each character is either a metacharacter, having a special meaning, or a regular character that has a literal meaning.

Module Export - quick import into your scenario

You can copy and paste this module export into your scenario. This will import the modules (with fields/settings/filters) shown in my screenshots above.

  1. Move your mouse over the line of code below. Copy the JSON by clicking the copy button on the right of the code, which looks like this:

  2. Enter your scenario editor. Press ESC to close any dialogs. Press CTRLV (paste keyboard shortcut for Windows) to paste directly in the editor.

  3. Click on each imported module and re-save it for validation. There may be some errors prompting you to remap some variables and connections.

JSON module export — paste this directly in your scenario

{"subflows":[{"flow":[{"id":38,"module":"http:ActionSendData","version":3,"parameters":{"handleErrors":true,"useNewZLibDeCompress":true},"mapper":{"url":"https://link.mail.beehiiv.com/ss/c/u001.RUBZ4nmpws8F7fbywsQK-kJr-QT2oW27rSFqVXAmXxJaPyfcDZlMU0bEcZbSsHW-o5YDP7sENUdZdPdqBjf8FV_amX69IRpetkWONyYF414YOlNW2govQUIRa3Ga1dH-8DkPW7nOzsI7E7kI2oR3F37RpxloglgRXxXeQqlMgjRecNREZpd4fKeBZdT5QR4mq7GCdjaLjbE6OQpLqJHI14QoKvtzihZc1llkZtlnLtKzdqChE3wRJJKWE8rsKl6hP9LWuOVIXZxl8Eu2X8WY9fIFf5syrG_KQb0Uw3vfG7nrqQlL5rvlED3EznBLJwFe4Aq9Ef_n07MKmu3SpCnuEn1m5ofEgia5Ywkn9B6PF8k/491/rcjkOlJPSz65TcUDFJs0Yw/h8/h001.d-pPi2LAZxh_VO3HoFpyn7beGuXYxo_X0742d-TyCBE","serializeUrl":false,"method":"get","headers":[],"qs":[],"bodyType":"","parseResponse":false,"authUser":"","authPass":"","timeout":"","shareCookies":false,"ca":"","rejectUnauthorized":true,"followRedirect":true,"useQuerystring":false,"gzip":true,"useMtls":false,"followAllRedirects":true},"metadata":{"designer":{"x":1156,"y":393,"name":"Get Article"},"parameters":[{"name":"handleErrors","type":"boolean","label":"Evaluate all states as errors (except for 2xx and 3xx )","required":true},{"name":"useNewZLibDeCompress","type":"hidden"}]}},{"id":43,"module":"regexp:Parser","version":1,"parameters":{"pattern":"<link rel=\"canonical\" href=\"(?<canonical>.+?)\"","global":false,"sensitive":false,"multiline":false,"singleline":false,"continueWhenNoRes":false},"mapper":{"text":"{{38.data}}"},"metadata":{"designer":{"x":1399,"y":393,"name":"Get canonical URL"},"parameters":[{"name":"pattern","type":"text","label":"Pattern","required":true},{"name":"global","type":"boolean","label":"Global match","required":true},{"name":"sensitive","type":"boolean","label":"Case sensitive","required":true},{"name":"multiline","type":"boolean","label":"Multiline","required":true},{"name":"singleline","type":"boolean","label":"Singleline","required":true},{"name":"continueWhenNoRes","type":"boolean","label":"Continue the execution of the route even if the module finds no matches","required":true}]}}]}],"metadata":{"version":1}}

Note: Did you know you can reduce the size of blueprints and module export code like the above, using the Make Blueprint Scrubber?

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

@samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!

1 Like