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 / Remove unwanted charac...
Power Automate
Answered

Remove unwanted character in a string

(1) ShareShare
ReportReport
Posted on by 56

Hello 

 

I am currently creating a flow in power automate.

Is there a way to remove unwanted character in a string

 

String : 0586-63- 1360

I want to remove the first 0, - and the space

 

Exact output : 586631360

 

Thanks

Categories:
I have the same question (0)
  • Verified answer
    trice602 Profile Picture
    16,269 Super User 2026 Season 1 on at

    Hi @GPT2 ,

     

    You can write a compose expression like this example:

     

    replace(replace(substring(triggerBody()?['subject'], 1), '-', ''), ' ', '')

     

    In my example - I am using the text as if it were in the subject but replace triggerBody()?['subject'] with the dynamic content of your data.

     

     

  • GPT2 Profile Picture
    56 on at

    @trice602 ,it is now working.thank you very much.

  • trice602 Profile Picture
    16,269 Super User 2026 Season 1 on at

    Very nice to hear this morning @GPT2 !

     

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 468

#2
Haque Profile Picture

Haque 370

#3
Valantis Profile Picture

Valantis 354

Last 30 days Overall leaderboard