use javascript objects : RegExp, String