Use of Regular Expressions in azure logic app

Nirali Shah 146 Reputation points
2022-07-04T13:29:03.97+00:00

We are creating logic app workflow in which we need to do some transformation which requires use of regular expressions. like if pattern matches a regular expression [\t\r] then replace it with some value. Can you guide us on how to implement regular expressions in azure logic app or any other way to achieve this task?

We have referred below link to use inline code for regular expressions but it doesn't work for us. so we want any other possible way to achieve the task.
logic-apps-add-run-inline-code

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,996 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,016 Reputation points
    2022-07-11T12:31:53.357+00:00

    @Nirali Shah Thanks for reaching out. In case inline script would not be possible to run in your logic app as per your requirement, then unfortunately there are no actions/inbuild function expression that could help you with your use case. You might need to add multiple expressions/actions to achieve your requirement, but it is not suggested and sometimes it may not be feasible.

    The recommendation is to leverage the inline expression but in case if it is not feasible then the workaround would be calling the function app to offload this functionality if inline expression is the option for you.

    In case you are facing any issue with the inline code then please let me know so I can assist you further.

    0 comments No comments