title: R, delete string of text or numbers using R
body: <p>I have 300 text files containing addresses with post codes. I need to write a code in R that scan these files and remove 6 digits letter/numbers after the postcode word.</p>
  
  <p>example:</p>
  
  <p>Postcode WD11 9ZP  to  Postcode XXXX XXX.</p>
  
  <p>Thank you!</p>