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 / Need to get just numbe...
Power Automate
Answered

Need to get just numbers and remove any characters and/or whitespace

(0) ShareShare
ReportReport
Posted on by 4

Building a desktop flow and I have scrapped the telephone number from a webpage (user could enter (###) ###-#### or ########## or ###-###-#### or however they want to enter it.......I need to get just the ########## from any or all formatted types.  Currently I've gathered the number as a variable, then Set the clipboard - then retreived the clipboard and Ctrl+V to enter it into my database.......issue is if there are any kind of characters, or whitespace, the database field doesn't contain enough spaces to include them and all the numbers.

telephoneFlow.JPG

I have the same question (0)
  • UshaJyothiKasibhotla Profile Picture
    225 Moderator on at

    use regex to fetch the required number by using parse text activity.

    then use replace text activity to replace any characters or whitespaces 

     

    Hope this helps

    Usha

  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Use Replace text on your variable with regular expressions enabled. Replace [^\d] (anything that is not a digit) with %""% (an empty string). Then use the result to push your data into the database.

    -------------------------------------------------------------------------
    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 312 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 154 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 143 Super User 2026 Season 2

Last 30 days Overall leaderboard