import Foundation
let data = Data(contentsOf: URL(fileURLWithPath: "bad_keywords.txt"))
let regexes = String(data: data, encoding: .utf8)!.components(separatedBy: "\n")
regexes.filter { "<target string>".range(of: $0, options: [.regularExpression, .caseInsensitive]) != nil }.map { puts($0) }