Re: How to convert sequence of characters to numbers
- Posted by petelomax Oct 25, 2012
- 1579 views
ghaberek said...
the method proposed by you, Spock, and Kat is over 25 times faster than my regular expression.
Ha
ghaberek said...
However, using a regular expression makes it easier to:
Uh
ghaberek said...
- allow for any number of variations and/or strictness in the input, e.g.
- 'year' can only be 1970-2012
- 'month' can only be 01-12
- 'day' can only be 01-31
- 'hour' can only be 00-23
- 'minute' and 'second' can only be 00-59
I'll believe that is a simple and easy regular expression when I see it and not before.
Pete

