Regular expressions explained in detail