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 / Using Replace Action t...
Power Automate
Unanswered

Using Replace Action to remove control characters

(0) ShareShare
ReportReport
Posted on by 2

I have a string that I need to format as JSON that contains control characters 0x1e and 0x1f.  I have tried replace \0x1e with %''% and other variations, but nothing is working.  I also have character '' showing up that I need to remove.  Any suggestions?

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    It depends on the string itself. If it is a relatively simple string, you might be able to use regex and simply define what should stay included (negative match) instead of what needs to be replaced (positive match). Can you provide an example?

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • keesling Profile Picture
    2 on at

    Thanks for the response. This is a large string that was the output from get text from pdf action, so that's not an option.  

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    You could try creating a separate text file with these special characters and make PAD read it, and use its contents to replace the text in your string.

     

    Otherwise, try using scripting actions, such as a PowerShell script, or a Python script to remove special characters. These scripting actions are usually better equipped to do it than native PAD actions.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 259 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 227 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 134 Super User 2026 Season 2

Last 30 days Overall leaderboard