Finding an integer number in a string surrounded by spaces
Posted on 2013-05-13
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.