added # to special terms regexp