Implemented regex test