regex - Python- regular expressions - filter between multi-line text -


I try to filter 'abc', 'def \ nghj', 'klm' from a different text file from the following line I am here.

  ******** ABC ******** DHHH ******** KLM  

I <*> Has tried to avoid '\ *' character and the rest of the group (such as '. * * * * * *. *) *. * '* No luck

Any help appreciated, thanks in advance ..

like the following Some can use in multi-line mode
where [*] {4} represents the delimiter

  # (?!? [*] {4}). * (?: \ R? \ N | $)) + (?: ^ (?! [*] {4}). * (?: \ R? \ N | $)) +  

Output:

  ** Group 0 - (position 10 , Lane 5) abc ------------ -------- ** Group 0 - (25, lane 10) DHHHH ------------- -------- ** GROUP 0 - (position 45, lane 3) KLM  

Comments