How does Deletes till the end of the line work?

The Professional add-on can delete a part of the content of each post that starts with a word or phrase, like “Read more”, “Related articles” or “Source:”. By default it deletes from that phrase to the end of the content. With Deletes till the end of the line it deletes only to the end of that sentence.

Delete From a Phrase to the End
In the Custom Content Parsers box.

  1. Edit the campaign and go to the Custom Content Parsers box.
  2. In Phrases or keywords, write the phrases, one per line. Uppercase and lowercase don’t matter.
  3. Check Keep phrase if you want to keep the phrase and delete only what comes after it.

The first phrase of the list that is found in the content is used: everything from that phrase to the end of the content is deleted.

Delete Only to the End of the Sentence
With Deletes till the end of the line.

  1. Go to WPeMatico β†’ Settings, open the Professional tab and turn on Enable “Deletes till the end of the line” feature.
  2. In Characters of end of sentence, write the characters that end a sentence, separated by spaces, for example . ? !. Then save the settings.

If you also use the Better Excerpts add-on, this field is replaced by a link to the Better Excerpt Options, and the end of sentence characters set there are used.

Deletes till the end of the line option in the wpematico professional settings

Now the same section of the Custom Content Parsers box has the Till the end of the line option. Check it, and the content is deleted from the phrase only to the next end of sentence. The rest of the content stays.

Delete all in the content after a phrase with till the end of the line in a wpematico campaign

Note: With Till the end of the line, each phrase of the list is deleted where it first appears, and the end of sentence character stays. If there is no end of sentence after the phrase, nothing is deleted.