Skip to Content »

Tech Life of Recht » archive for 'string'

 String replace and regular expressions

  • February 20th, 2008
  • 11:47 pm

All Java programmers know and use String.replaceAll(), but whenever I need to do something complicated, I always have to create a small test class where I can try out the regular expressions and replacement strings. Yesterday, I finally got tired of creating these test classes, and decided to implement a String.replaceAll on the web. Fortunately, the task was small enough to complete in an hour or two, so I actually got it done.

So, for all your string replacement needs, go to the very advanced replaceall.org website.

Incidentally, this was also my first Grails project. It hardly uses all features – for example, there’s no database involved, but it was fun trying anyways.