<commit_before>SwiftRegex
==========

Perl-like regex =~ operator for Swift
----------

This package implements a =~ string infix operator for use in testing regular expressions and retrieving sequences of matching sub-strings.

### Example

```
for match in "Hello World" =~ "\\w+" {
    println("matched: \(match)")
}
```

Prints:
<commit_msg>Updated README.<commit_after>SwiftRegex
==========

Perl-like regex =~ operator for Swift
----------

This package implements a =~ string infix operator for use in testing regular expressions and retrieving sequences of matching sub-strings.

The regular expression matching is performed using NSRegularExpression.

### Example

```
for match in "Hello World" =~ "\\w+" {
    println("matched: \(match)")
}
```

Prints:

{'fraction_non_alphanumeric': 0.1568627450980392, 'fraction_numerical': 0.0, 'mean_word_length': 4.006535947712418, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5334221', 'n_tokens_mistral': 221, 'n_tokens_neox': 203, 'n_words': 79}