Regex patterns don't match - # unsupported character?

Hi Makers, I have multiple regex patterns that don’t return a match, here are two examples:

Example 1
Pattern: (?<=#)\d{6}
Example: Enquiry #661070 - New message regarding XXX
Expected: 661070

Is the “#” an unsupported character or am doing something else wrong?

Example 1 works,

Example 2 works,

Note I didn’t modify anything. I just opened your links.

2 Likes

I think you are experiencing an issue on make.com with these expressions. You need to adjust them. Hopefully, this adjustment will yield the desired output

Example 2
Expression: #(\w+)


image

Example 1
Expression: #(\d+)


image

3 Likes

@samliew I didn’t explain well, they work on regex101, but don’t creates matches on Make, which is what left me confused.

@RBalani thanks for providing the solution, this works great! Could you shortly explain why the previous ones don’t work on Make?

3 Likes