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.

Imagine a scenario where your web application needs to call a SOAP web service to handle client requests. Reactive seems to be the word of the day lately. For that and many other actual reasons you’ll want the invocation to be non-blocking.

Scala supports a general way of taking some expression apart and checking if it matches some pattern (with its fractional constituents). Data corresponding to the whole pattern or to some of its constituents can be extracted and saved to new values for additional processing.