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

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard