Java Regular Expressions Performance


When I was coding an application I found that there is a performance leak while it run is running in the production environment. Profiling by Java Visual VM tool it was easy to know that a big amount of time consumption is in methods using regular expressions. After that I made a small test and I changed the application to be more efficient when correctly using regular expressions.