Not able to detect the space

Dear All,
I got a link this http://testsite1/mm/page1.php?tID=18&tSerial=TEST TT 1
Then I got this codes
var qs =, positionID = qs.match(/tID=(\w+)/)[1],serialID = qs.match(/tSerial=(\w+)/)[1];
My problem is that when tSerial is having space e.g. TEST TT 1 then my qs.match can not capture the space what changes must I perform here?

Your regex needs to include a space in its pattern.