title: What does regex "\\p{Z}" mean?
body: <p>I am working with some code in java that has an statement like</p>
  
  <pre><code>String tempAttribute = ((String) attributes.get(i)).replaceAll("\\p{Z}","")
  </code></pre>
  
  <p>I am not used to regex, so what is the meaning of it? (If you could provide a website to learn the basics of regex that would be wonderful) I've seen that for a string like</p>
  
  <p><code>ept as y</code> it gets transformed into <code>eptasy</code>, but this doesn't seem right. I believe the guy who wrote this wanted to trim leading and trailing spaces maybe.</p>