set extension via options

override auto selected regex rules
Merge pull request #9 from fresch/master

set extension via options