How to do a double split text?

Hmm, looks like the Match pattern module might have a bug.

Anyway, we can also use this alternate pattern:

Start:\s+(?<start>[\w\W]+?)\s+Stop:\s+(?<stop>[\w\W]+?)\s+Continue:\s+(?<continue>[\w\W]+)

Module Export

You can copy and paste this module export into your scenario. This will paste the modules shown in my screenshots above.

  1. Copy the JSON code below by clicking the copy button when you mouseover the top-right of the code block

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

  3. Click on each imported module and save it for validation. You may be prompted to remap some variables and connections.

Click to Expand Module Export Code

JSON - Copy and Paste this directly in the scenario editor

{"subflows":[{"flow":[{"id":1,"module":"regexp:Parser","version":1,"parameters":{"pattern":"Start:\\s+(?<start>[\\w\\W]+?)\\s+Stop:\\s+(?<stop>[\\w\\W]+?)\\s+Continue:\\s+(?<continue>[\\w\\W]+)","global":false,"sensitive":true,"multiline":false,"singleline":false,"continueWhenNoRes":false},"mapper":{"text":"Start:\n1. Visual Enhancement:\n   - Incorporate more dynamic b-roll footage to showcase the product in use\n   - Use close-up shots to highlight product details\n   - Display ingredient measurements on-screen\n\n2. Content Improvement:\n   - Add clickable timestamps in the video description for easy navigation\n   - Implement a clear call-to-action (CTA) at the end of the video\n   - Include a brief comparison with similar products in the market\n   - Showcase common substitutions for dietary restrictions\n\n3. Accessibility:\n   - Add English subtitles\n   - Include a printable recipe card in the video description\n\nStop:\n1. Audio Issues:\n   - Using generic stock music that doesn't match the brand's vibe\n   - Using background music that overpowers the narrator's voice\n\n2. Content Problems:\n   - Overloading the video with too many sponsorship mentions\n   - Rushing through important product features or complex cooking techniques\n   - Spending too much time on the unboxing process\n   - Using technical jargon without explanation\n   - Assuming viewers have advanced cooking knowledge\n\n3. Visual Distractions:\n   - Filming in a cluttered background that distracts from the product\n\nContinue:\n1. Production Quality:\n   - Maintaining high-quality video production and crisp audio\n   - Maintaining high-quality food videography\n\n2. Presentation:\n   - Engaging with viewers through witty and relatable commentary\n   - Maintaining enthusiasm and energy throughout the video\n   - Injecting humor and personality into the narration\n\n3. Content Delivery:\n   - Collaborating with the influencer who has great on-screen presence\n   - Demonstrating key features with hands-on examples\n   - Providing useful cooking tips and tricks throughout the video\n\n4. Audience Engagement:\n   - Responding to viewer comments for increased engagement\n\nā€‹"},"metadata":{"designer":{"x":266,"y":6},"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!

2 Likes