I have a multiple line text file which have blocks of text. Each block starts with name=, block can have variable number of lines. I need to extract these blocks, including name=.
Here is my best idea so far:
/(name=.*?)/gs
But it only matches the begging of the block name=, not the whole block.
 
     
    