- n1 = re.search(r'so.addVariable\(\'file\',\'(\d+)\'', webpage)
- n2 = re.search(r'so.addVariable\(\'seccode\',\'(.+?)\'', webpage)
- n3 = re.search(r'so.addVariable\(\'max_vid\',\'(\d+)\'', webpage)
+ n1 = self._search_regex(
+ r'so.addVariable\(\'file\',\'(?P<n1>\d+)\'', webpage, 'n1')
+ n2 = self._search_regex(
+ r'so.addVariable\(\'seccode\',\'(?P<n2>.+?)\'', webpage, 'n2')
+ n3 = self._search_regex(
+ r'so.addVariable\(\'max_vid\',\'(?P<n3>\d+)\'', webpage, 'n3')