add getopt option.
add "-re" to enable regex.
add more works.