How do I search and copy in emacs? -


this question has answer here:

my text follows format:

header hello ... ...  header neighbour ... ... ...  header test1 header test2 

i want select instances of header*\n , copy them new document. so, result like:

header hello header neighbour header test1 header test2 

it doesn't matter if spaces preserved. possible standard emacs functionality?

it might easier copy whole document new document, , use delete-non-matching-lines.

m-x delete-non-matching-lines<ret> ^header<ret> 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -