Curl redirect fragment

fixes #82
You can get rid of the `$count` param by using the `preg_filter` function instead. It will return null if the replacement is not made.