# \[Pitch #2\] Regex Literals

**URL:** <https://forums.swift.org/t/pitch-2-regex-literals/56736>\
**Category:** Pitches\
**Created:** [April 13, 2022, 5:56pm UTC](https://forums.swift.org/t/pitch-2-regex-literals/56736 "2022-04-13T17:56:28Z")\
**Posts on this page:** 1\
**Showing post:** 25

<div class="post-metadata">

**Author:** ![mishal\_shah](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/mishal_shah/32/247_2.png) [@mishal\_shah](https://forums.swift.org/u/mishal_shah)\
**Post date:** [April 14, 2022, 4:22am UTC](https://forums.swift.org/t/pitch-2-regex-literals/56736/25 "2022-04-14T04:22:24Z")

</div>

To contribute some data to the level of source impact when in Swift 6 mode: we tested the proposed literal syntax using the Swift Package Index [package collection](https://github.com/SwiftPackageIndex/PackageList/blob/main/packages.json). The packages were selected if they successfully built for Swift 5.6 using Swift package manager (`swift build`) on macOS.

- Total packages - 2968
- 16 Projects failed due to Regex Literal change
  - 15 Projects failed with `error: prefix operator may not contain '/'`
  - 1 Project failed due to `/` ambiguity

- 74 Projects failed due to unrelated reasons

We also tested changes against a large closed-source swift codebase and found one instance of failure.

---

_[View the full topic](https://forums.swift.org/t/pitch-2-regex-literals/56736)._
