Re: How to convert sequence of characters to numbers

new topic     » goto parent     » topic index » view thread      » older message » newer message
ghaberek said...

the method proposed by you, Spock, and Kat is over 25 times faster than my regular expression. sad

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu