extract matching lines from file

  
grep 'your_regex' filename > matches.txt
  

edit this page