How to look for a number from 1 to 4 chars long
Posted: Thu Aug 09, 2012 11:50 am
Hello,
I am trying to set a variable to a number from a string. The number can be 1 to 4 characters long. Right now I have it returning the index for the start of the number, I need it to return the number itself.
In the example below I want to captrue the '581'. This is in AS3 by the way.
Any suggestions?
I am trying to set a variable to a number from a string. The number can be 1 to 4 characters long. Right now I have it returning the index for the start of the number, I need it to return the number itself.
In the example below I want to captrue the '581'. This is in AS3 by the way.
Any suggestions?
Code: Select all
width="581"