using Regex with email connector

NathanDorsch
NathanDorsch Member
edited April 2023 in APIs & Domo Developer

Can anyone help me with Regex for an email connector. I have an email with two separate xlsx files. I've noticed the email connector will automatically default to the first one and I'm having difficulty getting a connector to pull the other.

I tried setting up a separate connector to pull a file if the Attachment name expression contains "RMP". But it doesn't seem to work… How do I write REgex to pull the file if the Attachment Name Expression contains "RMP"?

Tagged:

Best Answer

Answers

  • @GrantSmith is the Regex guru. He will be able to put something together for you.

    **Check out my Domo Tips & Tricks Videos

    **Make sure to <3 any users posts that helped you.
    **Please mark as accepted the ones who solved your issue.
  • (?i)\bRMP

    I haven't been doing regular expressions in Domo. But the regular expression above says use case insensitivity to find "rmp" or "RMP" or "rMp" etc in the string.

    \bRMP2\b

    Would find RMP2 but would not find RMP.

    ** Was this post helpful? Click Agree or Like below. **
    ** Did this solve your problem? Accept it as a solution! **

  • The proposed Regex is not working. This can't be that difficult! @GrantSmith or someone, can you please help me?

  • MichelleH
    MichelleH Coach
    Answer ✓

    @NathanDorsch Try this: .*RMP.*

    For future reference https://regexr.com/ is a great resource to test whether your Regex works as expected

  • THANK YOU. @MichelleH