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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Remove unwanted charac...
Power Automate
Unanswered

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
    15,402 Super User 2025 Season 2 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
    15,402 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard