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

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
    203 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

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard