Wednesday, September 8, 2010

The power of nested references in Java regular expressions

One day it dawned upon me that I haven't seen any interesting uses for nested references just yet, so I decided to sit down and brew some interesting patterns; boy were there many.

Here's what I've published on stackoverflow so far:
I still have a few more good ones to go.
These aren't part of the series, but use nested references regardless:
  • Split string of varying length using regex (an absolutely wonderful problem; I'd like to go back to this sometime in the future to apply new things I'd have learned by then, because the current solution is a bit convoluted).

No comments:

Post a Comment