         var feeder = FeedMask(minimumCapacity: 3)
         if let feeds = data.feeds as? [String] {
             for filter in feeds {
-                if let category = FeedCategory(rawValue: filter[filter.startIndex..<filter.startIndex.advancedBy(1)]) {
-                    feeder[category] = filter[filter.startIndex.advancedBy(2)..<filter.endIndex]
+                if let category = FeedCategory(rawValue: filter[filter.startIndex..<filter.startIndex.advancedBy(1)]),
+					regex = try? NSRegularExpression(pattern: filter[filter.startIndex.advancedBy(2)..<filter.endIndex], options: []) {
+						feeder[category] = regex
                 }
             }
         }

        case All = "a", Pregame = "p", Venue = "v"
    }
    
    typealias FeedMask = [FeedCategory:String]

	let administration: String
    let feeds: FeedMask

//  Copyright © 2016 Sandcastle Application Development. All rights reserved.
//

import Foundation
import AWSDynamoDB

final class Advertisement: CustomDebugStringConvertible
{
	static var ads = [String:[Advertisement]]()

	static func apropos(identifier: String, ofFeed feed: FeedCategory, inAdministration administration: String) -> [Advertisement]? {
		return ads[administration]?.filter { $0.apropos(identifier, ofFeed: feed) }
	}
    
	enum Style: Int {
		case Page, Overlay
