code: function matchTabItem(tabItem, searchExp) {
    var urlMatches = tabItem.url.match(searchExp);
    var titleMatches = tabItem.title.match(searchExp);
  
    if (urlMatches === null && titleMatches === null) {
      return null;
    }
  
    return new FilteredTabItem({ tabItem: tabItem, urlMatches: urlMatches, titleMatches: titleMatches });
  }
docs: Use a RegExp to match a particular TabItem
  
  @return {FilteredTabItem} filtered item (or null if no match)
   
  Search and filter operations on TabWindows