Fixed bug with regex url matching '\0' end of matched expression.