title: Match any string regex
body: <p>I am attempting to match any string of charicters using regular expressions in Java but have encounted a problem. I am trying to replace where a string contains <code>%key%</code> with the corrasponding value from a hashmap.</p>
  
  <p>My currant regex pattern is <code>%([.]+)%</code> which seems to not work but I'm not sure why. I have tried <code>%([a-z A-Z 0-9])%</code> which seems to work fine but I would like to allow all charichters but new line and "." does not seem to allow anything but fullstops(e.g. <code>%...%</code> will worb but <code>%test%</code> won't.</p>
  
  <p>I'm honestly not sure what I have done wrong, I assume I am using the fullstop in the wrong place but can't seem to find how to use it correctly.</p>
  
  <p>Sorry for the horrible explaination, I can't think of how to put it better.</p>
  
  <p>Thanks.</p>