Added regular expression demo and related test.