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*

2
  • No, no, this works perfectly! Just when the Error is at the end of the line, it still is accepted, but that can be easily fixed by adding $ at the end of the regex. I was also thinking about somehow checking the length, but was unable to do it for any amount of chunks and yet it's this simple. Thanks! Commented Jan 23, 2014 at 15:35
  • You are right about the end of the line ! I added the $ in my answer. Commented Jan 23, 2014 at 15:37