Perl-like regex =~ operator for Swift