Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Looks good, except I don't think space is an alternative to dash, looks like it can only be used in place of a semicolon. Commented Sep 30, 2011 at 16:26
  • You don't have to escape the . inside brackets Commented Sep 30, 2011 at 16:26
  • @IAbs Thanks, I always forget about that. Fixed now. Commented Sep 30, 2011 at 16:30
  • Thanks that works. I updated my question after your answer so it does not quite answer it now, but I managed to adapt it: @"^([0-9]+([,.][0-9]+)?[-][0-9]+([,.][0-9]+)?[ ;])+(?<=;)$" Commented Sep 30, 2011 at 17:15