Hello @Mohamed Mohamed ,
Thanks for the question and using MS Q&A platform.
That's becasue the RegexMatch returns boolean . I worked on the expression below that may be used at your end in the derived column transformation.
iifNull(
iif(
regexMatch(Telephone1, `(\+44|0044|0|44)(7)[4-9][0-9]{8}`),Telephone1,toString(null())
),
iif(
regexMatch(Telephone2, `(\+44|0044|0|44)(7)[4-9][0-9]{8}`),Telephone2,toString(null())
),
iif(
regexMatch(Telephone3, `(\+44|0044|0|44)(7)[4-9][0-9]{8}`),Telephone3,toString(null())
)
)
The idea is to match the regex - If true return the number value with column (Tx) - else move to the next column & repeat the step
Hope this will help. Please let us know if any further queries.
------------------------------
- Please don't forget to click on or upvote button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators