#Hashtags— I cannot escape the "#" symbol

Goal:

I am trying to post hashtags on social media.

Problem:

The “Hashtags” element (seen below) doesn’t populate.

Here’s how I’m trying to escape the hashtag:

Text version of the formula above:

{{replace(4.Hashtags; “/([|{}@()<>#*_~\])/g”; “$1”)}}

Question for you: How do I escape the “#” symbol to post the hashtags?

Welcome to the Make community!

1. Screenshots of module fields and filters

Please share screenshots of relevant module fields and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:
Screenshot_2023-10-07_111039

2. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

Screenshot_2023-08-24_230826
(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

blueprint.json (12.3 KB)

3. And most importantly, Output bundles

Please provide the output bundles of the modules by running the scenario, then click the white speech bubble on the top-right of each module, save the bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.
Screenshot_2023-10-06_141025

Providing the output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

2 Likes

Here’s the total scenario:

I’m using Airtable:

The output has hashtags.

For some reason those hashtags don’t post on LinkedIn.

My guess is that it’s the “#” symbol.

So I tried using the replace() function to escape the hashtag.

Here’s what the regex outputs:

image

But that doesn’t publish to LinkedIn.

Try

{hashtag|\\#|digitalmarketing}

2 Likes

Thanks for your response! Where do I put that line? Inside the replace() function as a replacement string?

OK, getting closer!

Trying a few options:

Returns this:

So if I could just remove the \ from this:

I’d be set!

Do you know to escape just that ?

Screenshot_2023-12-31_001231

2 Likes

Thanks! Weirdly, I thought that was how I set it up originally and it didn’t work (which is why I posted here). But it works now!

1 Like