Jump to content

Karl2019

New Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Karl2019

  1. Definitly I was not exact enough: Let's see another example: The whole text is made of multiline blocks that start with "start" and end with "end". Each textblocks has either 0,1 or many occurences of "keyword". In the first run I want to replace all textblocks that have 0 occurences of the "keyword". In the second run on the original whole text I want to remove all textblocks that have 1 or many occurences of the "keyword". start wofj keyword wopkefpwoekf end start oidfgoj pwefkoewfk end [and so on many many time] First run would remove the second textblock. Second run would remove the first textblock.
  2. Hi! I have a longer text, where I want to distinguish between textblocks that do contain a certain keyword, and that don't. smaple woiefjeowijji oj oiewjfoewijfoiwejfiojewf keyword owiejfioejoij oiewjfioewjf smaple smaple ojioewj fijo oieiojewf keyword owiejfioejoij oiewjfioewjf smaple smaple woiefjeowijji fijo oiewjfoewijfoiwejf owiejfioejoij oiewjfioewjf smaple 1. The textblocks I want to find start with "sample" and end with "sample. 2. The textblocks I want to find then start with "sample" and end with "sample anddo contain the "keyword". I just can't find the right regular expresstion. What should I use?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.