port PageTitleFilterPageGenerator from compat

changed re.match to re.search for more precise comparison

bug: 55007
Change-Id: I3ff0bebff3e4bfc62fde290811d8d6504532e9c0