To me, regexes definitely feel like they belong in Foundation. Also, I don’t
think they’d be well-served by a literal syntax (even just
ExpressibleByStringLiteral) because this privileges using the default regex
options over specifying non-default options.
The compilation issue seems a bit tri
Thank you for bringing this up! Swift String has a lot of expressivity gaps
we’re trying to tackle in Swift 5. I think that both language and library
support for flexible matching and transformation is needed, likely through a
regex-like construct. Libraries and prototypes like this help drive t
> On Aug 10, 2017, at 11:48 AM, Tino Heth via swift-evolution
> wrote:
>
> I guess everyone agrees that there should be support for regular expressions
> - I'm just not sure where, how and when to integrate it…
> People seem to have a (sometimes unhealthy…) passion for regex, so I'd like
> to
I guess everyone agrees that there should be support for regular expressions -
I'm just not sure where, how and when to integrate it…
People seem to have a (sometimes unhealthy…) passion for regex, so I'd like to
encourage a critical look on their importance.
For example, I don't think they belon
Disclaimer: I am not well versed in the various complexities of regex
implementations.
That being said, I would very much like to see better regex support in Swift.
Preferably one that is easier to pick up than the NSRegularExpression of ObjC
and possibly as easy to start using as python or rub
Hi Joshua,
I also feel a huge gap when it comes to string matching, whether it is
implementation or performance.
I also wrote a library for String matching called StringMap and it has been way
for performant than regular expressions.
I recently proposed to include it in core foundation but it se
Hi Joshua,
Thanks for bringing this topic up. It may help to outline why regular
expressions were deferred until Swift 5. The work to create a regular
expression type itself, and even to add a regex literal protocol, is fairly
straightforward and probably could have been done in the Swift 4 ti
Hi Joshua,
while this is a great idea, I'm afraid that this needs to be more
thought-through. For example, which regex standards would you like to include?
I really hope that Swift's regex support will not get stuck with plain ICU
regexes like NSRegularExpression. I personally would love to see
Hey everyone,
I would like to pitch an implementation of Regex in Swift and gather all of
your thoughts.
Motivation:
In the String Manifesto for Swift 4, addressing regular expressions was not in
scope. Swift 5 would be a more fitting version to address the implementation of
Regex in Swift. NS