in reply to Re: Help sorting contents of an essay
in thread Help sorting contents of an essay

I would suggest /\w+/ would be a pretty sensible place to start for matching words. Hyphenated words will be matched as two separate words, which may or may not be what you want, depending on the task at hand.

Replies are listed 'Best First'.
Re^3: Help sorting contents of an essay
by AnomalousMonk (Archbishop) on Apr 18, 2020 at 20:31 UTC

    Ah, what's in a word? In addition to hyphenations, I was thinking of cases like  son's sons' wouldn't wouldn't've O'Brien ain't t'ain't etc, etc. And that's just ASCII English!  \w+ might be perfect for harmattan_'s application, but I don't know what that application is.


    Give a man a fish:  <%-{-{-{-<