reg expression error is still in code