 	init(_ pattern: String) {
 		self.pattern = pattern
 		var error: NSError?
-		self.internalExpression = NSRegularExpression(pattern: pattern, options: .CaseInsensitive, error: &error)
+		self.internalExpression = NSRegularExpression(pattern: pattern, options: .CaseInsensitive, error: &error)!
 	}
 
 	func test(input: String) -> Bool {

		//
		if( bundleId == "" ) {
			let path = NSBundle.mainBundle().pathForResource("info", ofType: "plist")
			let dict = NSDictionary(contentsOfFile: path!)
			bundleId = dict.objectForKey("bundleid") as String
		}

		//

		let process = NSProcessInfo.processInfo();
		let edict = NSDictionary(dictionary: process.environment)
		path = fileMGR.currentDirectoryPath
		home = edict["HOME"] as String

		//
		// If the info.plist file exists, read it for the bundleid and set the bundleId variable.
