Added some regexp methods and some tests