Regular expressions works really wonderful when you want to extract matches of a pattern within a string. You can also use regular expression to replace a pattern with some other text, or you can split the string on matching patterns as delimiter. Is it confusing? Are you wondering now what pattern mean? Ok, pattern is just a set of characters and meta-characters to describe all the text you are interested in. set of characters just represents the string (literal pattern) and the meta-characters...