notepad++ - How to delete lines between 2 line patterns using regex? -


so have file like:

    flagshare     xxxxxx     xxxxx, 1 2015      words....      flagshare     xxxxxx     xxxxx, 2 2015      words....      flagshare     xxxxxx     xxxxx, 3 2015      words.... 

etc.etc.

how able delete 3 lines flagshare, xxxxxx, xxxxx, * 2015 (essentially remove flagshare, 2015 , lines between flagshare , 2015) using notepad++?

you can use following match:

flagshare[\s\s]*?2015 

and replace '' (empty string)

see demo


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -