close issue #11 , support ^ and $