You are to create a special regex that will detect if an HTML GET request is valid or not (with some gotchas). Strings are formated like so:
name1=val1&name2=val2&name3=val3&name4=val4
You need to detect requests with the four names: "val", "id", "desc", "time" (each value can have a different order).
"val=val1&id=val2&desc=val3&time=val4"
"id=val2&val=val1&time=val4&desc=val3"
Each name has a specific value:
"val=test1151&id=5&desc=helloWorld&time=54:33"
"id=10&val=123test&time=99:00&desc=itsok"
When the regex checker is finished, you need to put all names and their values from the request into an object and return it with the given function dataRegexLovely(). The parameter str is a valid GET request (no gotchas).
"" when users don't send a request.