The instructions were that "--" was to be treated like a space, so presumably should not be part of the punctuation runs - I think it should print {|o'clock|}, for example, not {|o'clock|--}.
I do prefer your version of the word parsing to mine, but I suspect (?: '-? | -'? ) is what's intended. (There aren't any examples of "word-'word" in the test cases though - I could probably come up with one in Dutch, but I imagine they're pretty rare in English.)
In reply to Re^2: Problem with a text-parsing regex
by hv
in thread Problem with a text-parsing regex
by ibm1620
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |