Changelog History
-
v2.1.1 Changes
March 02, 2020๐ Improves the CocoaPods spec metadata by explicitly annotating the license file as "MIT". Thanks @AlexeyVasilyevRN!
-
v2.1.0 Changes
April 21, 2019๐ New:
- โ Adds a new option regex option
.allowCommentsAndWhitespace
, allowing for richer, self-documenting regular expression patterns. (#66 โ thanks @remithaunay!)
๐ Improved:
- ๐ Updated internals to use the modern built in conversions between
NSRange
andRange<String.Index>
. This should improve performance and potentially correctness! (#69)
- โ Adds a new option regex option
-
v2.0.0 Changes
March 29, 2019Say hello to Regex version 2, including support for Swift 5! This release adds no new functionality , but drops support for Swift versions less than 4.2. Regex 2 should otherwise be fully compatible with Regex 1.1.
-
v1.1.0 Changes
August 04, 2017๐ฑ Regex now speaks Swift 4! ๐
โ Added:
- The
Regex
type now conforms toCodable
, so you can encode and decode regular expressions to your heart's content. (#52) MatchResult
has a newrange
property. (#54, thanks @mezhevikin!)- To go with
MatchResult.range
, there's also thecaptureRanges
property, allowing you to work with the ranges of capture groups. (#59)
๐ Fixed:
- Regex now handles the newly overhauled String index API, maintaining that sweet, sweet Unicode correctness, whatever your chosen Swift version. (#57, 7952bae, 1a90514, thanks @wspl!)
Thanks for using Regex!
- The
-
v1.0.0 Changes
June 13, 2017๐ฑ Regex is now officially at 1.0.0! ๐
Here's a quick hit list of features:
- Easily and safely create regular expressions
- When creating a regular expression from a static string, no error handling required
- ๐ Great pattern-matching support via
Regex.lastMatch
- Type safe access to capture groups
- ๐ Convenient extensions to
String
to support find and replace
I hope you enjoy using Regex!
-
v1.0.0-beta.2
June 13, 2017 -
v1.0.0-beta
June 12, 2017 -
v0.4.3 Changes
December 12, 2016๐ Fixes a build failure when using Swift Package Manager.
-
v0.4.2 Changes
September 25, 2016๐ This should add full Swift 3 support for swiftpm and CocoaPods users. Carthage users should be able to opt into Swift 3 using the
--toolchain
option tocarthage build
.๐ฅ Breaking changes to drop Swift 2 support and adopt the Swift API Design Guidelines will be made in a future release.
-
v0.4.1 Changes
September 15, 2016โ Added:
- ๐ New
DotMatchesLineSeparator
option allows.
to match new line characters such as\n
. Thanks @ninjaprawn!
- ๐ New