Link to home
Create AccountLog in
Avatar of mauricerichard
mauricerichard

asked on

Finding an integer number in a string surrounded by spaces

Hello Experts,

I need a function that returns a true if a string contains an integer.  But it has to be a true number, no alpha numerics.

example string 1: "This is a string with a number: 123456 so that's true?"
example string 2: "This string has alpha-numeric data: B123456D so that's false?"

So essentially an integer surrounded by spaces.

Thanks!
Moe
Avatar of kaufmed
kaufmed
Flag of United States of America image

Is the answer you received in your previous question not working?
SOLUTION
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
ASKER CERTIFIED SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of mauricerichard
mauricerichard

ASKER

Thanks for the quick reply everyone, I'll try these solutions!
There were both useful to me, thanks!