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 Apps / Extract only numbers f...
Power Apps
Unanswered

Extract only numbers from string

(0) ShareShare
ReportReport
Posted on by 204

Hi Guys,


I have a dynamic text input box.


I want to only extract numbers and remove everything else. Example letters, spaces, special characters etc.

Any help is greatly appreciated.


Thanks

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    Either of these tend to work for me:

     

    Trim(Concat(Split(Label7.Text,""),If(IsBlankOrError(Value(Value)),"",Value),""))

     

    Concat(Filter(Split(Label7.Text,""),IsNumeric(Value)),Value)

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @christian12 ,

     

    This works for me too ->

    Trim(Concat(Split(TextInput1.Text,""),If(IsBlankOrError(Value(Value)),"",Value),""))

    swaminawale_0-1680666743706.png

     

  • timl Profile Picture
    36,634 Super User 2026 Season 1 on at

    @christian12 

    Here's a Regex example that will also work

    Match(TextInput1.Text, "[0-9]+").FullMatch

     

    timl_0-1680683057804.png

     

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 88

#2
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 45

Last 30 days Overall leaderboard