add pi function
remove unused import
refactoring createRegexObject
add newRule(ad-hoc)
split method createNewZeroMoreRule