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