in reply to Ideas to improve this regexp?

/^\s*\D/

Update: Thank you for the correction, moritz.

Replies are listed 'Best First'.
Re^2: Ideas to improve this regexp?
by moritz (Cardinal) on Nov 03, 2009 at 13:59 UTC
    That doesn't work as expected. If the string starts with a whitespace followed by a digit, \s* matches the empty string and \D the whitespace, so you'll get false positives.