todo updated
regex compilation happens once as class var