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

Notifications

Announcements

No record found.

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
    237,801 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans