#!/usr/bin/env swift; import Foundation import Utils // Begin Main let str:String = "Four score and seven years ago..." print("Split 1: " + Utils.listToString(str.splitRegex(NSRegularExpression(##" "##)))) print("Split 2: " + Utils.listToString(str.splitRegex(NSRegularExpression(##"[eo]"##)))) print("Split 3: " + Utils.listToString(str.splitRegex(NSRegularExpression(##"\s"##)))) print("Split 4: " + Utils.listToString(str.splitRegex(NSRegularExpression(##"\W"##)))) exit(EXIT_SUCCESS)