added calc function
Merge branch 'master' of https://github.com/zhy2002/rexreplace