title: Apply sed replacement expressions in Java
body: <p>I'm looking for a way to take <code>sed</code> replacement expressions, such as <code>s/hello/world/</code> (meaning replace all instances of 'hello' with 'world'), and apply them to a Java String.  Ideally I would like to have support for other <code>sed</code> features like capture groups and so on, but they're not strictly necessary.</p>
  
  <p>Are there any good libraries for this kind of thing in Java?</p>
  
  <hr>
  
  <p>I could try to parse the sed expression myself, but I'd rather not get into the rats nest of escape handling.</p>