Validate email in ADF

Ashok A 20 Reputation points
2023-09-30T17:12:55.07+00:00

How to validate email in ADF - mapping data flow. I am using below regex in my conditional split transformation in ADF, but getting error. Same regex is working fine in my local python program. Please help.

regexMatch(email,'^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,})$')

error1.JPG

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
{count} votes

Accepted answer
  1. Vahid Ghafarpour 23,385 Reputation points Volunteer Moderator
    2023-10-01T04:41:57.0166667+00:00

    I think you need to take care of escape characters and replace ' with `

    Use the back quote to match a string without escaping.

    https://learn.microsoft.com/en-us/azure/data-factory/data-flow-expressions-usage#regexMatch


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.