re.compile(r'/citations?view_op\x3dview_org\x26hl\x3den\x26oe\x3dASCII\x26org\x3d9117984065169182779\x26after_author\x3dzMpCAE3n__8J\x26astart\x3d10',re.UNICODE) code example

Example 1: python re compile

import re
#	Compile a regular expression pattern into a regular expression object, which can be used for matching using its match(), search() and other methods, described below.

prog = re.compile(pattern)
result = prog.match(string)

#	is equivalent to

result = re.match(pattern, string)

Example 2: re.match() python

import re

pattern = '^a...s$'
test_string = 'abyss'
result = re.match(pattern, test_string)

if result:
  print("Search successful.")
else:
  print("Search unsuccessful.")