I'm attempting to use TextDisplayFormatter.java in order to solve the
common problem of creating a string formatter to insert html paragraph
breaks on WOString. I've attempted to use the code as found here -
It requires gnu.regexp but I can't find anywhere to download it. I
suspect that its functionality has been moved into a different package
a couple of times.
What have people done to get this to work? Or is there a better way
than this?
Back when TextDisplayFormatter.java was written, the standard J2SE
distribution didn't contain a regular expression implementation as it
does now: java.util.regex. When I have come across Java source that
requires a third-party regular expression implementation, I've been
substituting the third-party regular expression methods with
java.util.regex methods so that the third-party library is no longer
needed.