in reply to How to match "text"?

FWIW, I ended up using
/[[:print:][:space:]]/

Replies are listed 'Best First'.
Re^2: How to match "text"?
by BrowserUk (Patriarch) on Jun 14, 2013 at 13:12 UTC

    Without anchors that will just ignore the presence of control characters.

    And be aware that [:space:] includes chr(11) (vertical tab) & chr(12) (form feed) which most modern "text" programs have no idea what to do with.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      Oh, yeah. I actually did negation, i.e.
      print "Is Non-Text" if [^[:print:][:space:]]/ ;