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 / Power Automate Strippi...
Power Automate
Answered

Power Automate Stripping special characters

(0) ShareShare
ReportReport
Posted on by 20

I have a user who is building a flow to save email messages.  He would like to be able to strip any special characters from the subject line of an email before saving the message.

 

I believe an expression can be used to replace special characters with underline but I am not sure what that expression would look like.

 

Any assistance is appreciated

Categories:
I have the same question (0)
  • Verified answer
    mattias1172 Profile Picture
    on at

    If its the same 1 or 2 special characters, you can use the replace() expression. You'd need a replace for each character so it would not be ideal for a lot of them. 

     

    The syntax is: replace(text: string, oldText: string, newText: string)

     

    Example: replace('!mytext','!','')

    This example removes the ! since there is nothing in the new text section. 

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 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard