update minVersion
replace unneeded regex with strings
also remove space inside date fields
get patentnumber from url parameter docid
one more regex to string conversion