As it I understand what you want to do ! :)
But for the performance (?) and for the ease of reading I think the better is to just write
```js
"html": "<form name=\"product\" method=\"post\" action=\"[^\"]+\\?do=addtocart&prodid=\\d+\".+<input type=\"hidden\" name=\"addtocart\" value=\"\\d+\">",
```