# Regular Expressions in Swift

**URL:** <https://forums.swift.org/t/regular-expressions-in-swift/34373>\
**Category:** Discussion\
**Tags:** string\
**Created:** [March 7, 2020, 2:12am UTC](https://forums.swift.org/t/regular-expressions-in-swift/34373 "2020-03-07T02:12:25Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Karl](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@Karl](https://forums.swift.org/u/Karl)\
**Post date:** [March 10, 2020, 1:30am UTC](https://forums.swift.org/t/regular-expressions-in-swift/34373/9 "2020-03-10T01:30:44Z")

</div>

FYI, there’s an updated discussion since the first link (only 6 months old, so relatively recent), with a prototype implementation: [[Prototype] Protocol-powered generic trimming, searching, splitting,](https://forums.swift.org/t/prototype-protocol-powered-generic-trimming-searching-splitting/29415)

It’s a good time to think about this. We recently added `RangeSet` and `DiscontiguousSlice`, and I think that might have reignited interest in predicate-matching (perhaps something like [this pitch](https://forums.swift.org/t/pitch-containmentset/11626)). If we can come up with a cohesive design for all of this, we should have a solid foundation for one-off patterns via regex literals.

---

_[View the full topic](https://forums.swift.org/t/regular-expressions-in-swift/34373)._
