Help with RegEx pleasee

Hello everyone, so I’m trying to use the Match Pattern Module in order to set variables from values inside a single text group. I can’t seem to match the texts I need. Here is a sample text that comes in:

Client Name: Client
Client Question: Question
Additional Info:  Additional INfo
Attachments:

and here’s the RegEx that I was using:

Client Name: (?<client_name>[\w\W]+?)\s+Client Question: (?<client_question>[\w\W]+?)\s+Additional Info: (?<additional_info>[\w\W]+?)\s+Attachment:

but it doesn’t work. Was hoping someone can help me get the correct RegEx for this?

Welcome to the Make community!

You are missing an “s” for attachments.

Client Name: (?<client_name>[\w\W]+?)\s+Client Question: (?<client_question>[\w\W]+?)\s+Additional Info: (?<additional_info>[\w\W]+?)\s+Attachments:

Proof: https://regex101.com/r/CRWvW3/1

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!

3 Likes

Wow. I can’t believe I missed that HAHA thank you! It’s like missing a semi-colon on a set of code.

1 Like