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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

I want to extract the numbers from the string

(0) ShareShare
ReportReport
Posted on by 4,359

I want to extract the numbers from the string
e.g., 123Arpit ...so what i want the output as 123
Can anyone please help me how to do it.  Thank you

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    239,029 Most Valuable Professional on at

    you have several options, the most obvious is strKeep(inputString, '0123456789')

  • ARPIT CHAVHAN Profile Picture
    4,359 on at

    But it is not fixed like i have various numbers

    e.g., 101arpit

    10arpit

    1023arpit

  • Verified answer
    Community Member Profile Picture
    on at

    strKeep keeps only the characters that you want to keep

    strKeep('101arpit','0123456789') returns '101'

    strKeep('1023arpit','0123456789') returns '1023'

  • Fayaz Ahamed Profile Picture
    1,420 on at

    You can use strKeep function to dissolve alphabets. It always returns string value where in which you can convert to integer.

    Eg: strKeep("123Arpit567","0123456789") // returns "123567"

  • ARPIT CHAVHAN Profile Picture
    4,359 on at

    Thank  you very much guys.

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 Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans