A regular expression to match non-blank and non-empty strings. Can be used to extract all content without blank lines and empty strings from the document.
/(.|\s)*\S(.|\s)*/
Matches:
- ABC
- A B C
- A+B
Non-matches:
- Any blank lines and empty strings
See Also:
- Regular Expression To Match All Blank Lines In Document
- Regular Expressions For New Line
- Regular Expression For Empty String