Support Portal

for ProcessRobot and WinAutomation

Start a new topic

Deleting a paragraph from .txt if it contains a certain word


This process is useful for deleting entire paragraphs from one or more files (applying Regular Expressions) containing blocks of text with a specific word (or string).  The attached process offers two outputs - one being the output text from a source file with line breaks where paragraphs have been deleted based upon the key word (or string) indicated - the other option offers to have all line breaks removed all together, leaving a single text block.  Make adjustments to output variables used as required.

Download the Lorem Ipsum Test.txt file onto your desktop and open the WinAutomation process in your console.  Keep in mind this example uses one sample document, however you can make modifications to add a 'For Each' loop for instances where you want to iterate through more than 1 text file.

Login or Signup to post a comment