Text parser fails sometimes

Hi,

I’m experiencing an issue with the Text Parser module. In most cases - roughly 9 out of 10 times - it works exactly as expected. However, occasionally it doesn’t produce any output at all, even though the input format appears consistent.

I’ve double-checked the regex pattern and settings (multiline and singleline enabled), and everything seems to be configured correctly.





1 Like

Welcome to the Make Community!

In those inputs that failed, it’s because they did not begin with the markdown code fence.

In a regular expression pattern, the pipe symbol represents an “OR”, but it has to be used in conjunction with groups. You are missing the brackets for the group.

(  |  )

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

@samliew

1 Like

(^html\s*([\s\S]*?)$)|(<!DOCTYPE html>\s*<html[^>]>\s[\s\S]?\s<body[^>]?>)|(</body>\s</html>)

Like this?

1 Like

You can test your regular expression patterns here: https://regex101.com

Paste in your Pattern at the top and paste a complete/full example text you are trying to match from below it.

Then, save the regex example and share the link with us here.

This will allow others to assist you here with your pattern. Thanks!

Hope this helps! Let me know if there are any further questions or issues. P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!

@samliew

1 Like

Tried adding it here

But the text parser does not make an output

1 Like


It does not produce any output

1 Like

In this module, you do not need to include the pattern marker slashes / / at the start and end of the pattern, as it would be included for you.

Try this pattern: https://regex101.com/r/2yf4Yy

3 Likes


Still no output sadly.

Your input text has probably changed then. The regex I linked has matches, so the only thing left is to ensure that your input text follows the same format.

Hope this helps! Let me know if there are any further questions or issues. P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!

@samliew