I'm trying to find a function that will take a string and output only the numbers within that string.
My string field values look something like this:
C-123R C-1 Ladders R-32L
where the beginning of the string is always 2 characters before the numbers start. But, the numbers can be either 1-3 digits long, and the chars after the numbers can vary greatly.
I've tried a few different things like this and this but wasn't able to get it going.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
kpcollier
I'm trying to find a function that will take a string and output only the numbers within that string.
My string field values look something like this:
C-123R C-1 Ladders R-32L
where the beginning of the string is always 2 characters before the numbers start. But, the numbers can be either 1-3 digits long, and the chars after the numbers can vary greatly.
I've tried a few different things like this and this but wasn't able to get it going.
Any help is appreciated.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.