Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Help sorting contents of an essay

by tobyink (Canon)
on Apr 18, 2020 at 13:15 UTC ( [id://11115728]=note: print w/replies, xml ) Need Help??


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:  <%-{-{-{-<

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11115728]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-19 21:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found