web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Replace multiple chara...
Power Automate
Unanswered

Replace multiple characters with specific characters in a string

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a requirement where I need to replace multiple characters with specific replacement characters in a string. 

 

Example: Replace '#25' with 'String 1', Replace '#35 with 'String xyz' and and so on. The mapping will be stored in a SharePoint list. the characters can occur any number of times in a single string, so, I need to identify them, get the correct mapping/replacement character from the SP list and replace it. 

Example of a string: "quick#25brown#35fox" ==>Should become 'quickString 1brownString xyz' after replacement. 

 

What would be the efficient way to do the replacements in the String? I tried a quite a bit and could not find a solution yet. Any help would be greatly appreciated.

 

 

Categories:
I have the same question (0)
  • David_MA Profile Picture
    14,090 Super User 2026 Season 1 on at

    You can stack the expressions for multiple replaces such as:

     

    replace(replace(replace(body('column_name'),'#25','String 1'),'#35','String xyz'),'Third replace','and so on')

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks David_MA. This would definitely work, but the challenge is to detect the pattern (can be more than one in a string), retrieve the corresponding replacement from a SharePoint List and do the replacements. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard