I want to select all lines of maximum 12 words that end that do not have any punctuation at the end.
Example:
Love's Equal On Earth
In a moving "in" and "out of focus" image, what you see is what you want to believe about yourself.
I love the feeling.
I must confess every day for better feeling
REsTsora is a non-profit website of millions of free books, movies, software, music, websites, and more.
The Output must find:
Love's Equal On Earth
I must confess every day for better feeling
My regex is not too good:
^(.*?)(\w+\s?){1,12}(?!\S|$)
I want to avoid all the punctuation marks at the end of the lines, that is to find those lines of a maximum of 12 words that have nothing after the last word, no punctuation marks, nothing. My regex stops of the line, before the '
punctuation mark.
Love's
counted as one or two words?