remove duplicate newline
use REG_ENHANCED
add to wc.c