# Regex literals requires quotation marks only on Windows

**URL:** <https://forums.swift.org/t/regex-literals-requires-quotation-marks-only-on-windows/63140>\
**Category:** Windows\
**Created:** [February 15, 2023, 6:22pm UTC](https://forums.swift.org/t/regex-literals-requires-quotation-marks-only-on-windows/63140 "2023-02-15T18:22:14Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![stevapple](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/stevapple/32/31979_2.png) [@stevapple](https://forums.swift.org/u/stevapple)\
**Post date:** [February 17, 2023, 6:00am UTC](https://forums.swift.org/t/regex-literals-requires-quotation-marks-only-on-windows/63140/6 "2023-02-17T06:00:28Z")

</div>

So it seems I misunderstood the concept of a _bare regex literal_, thanks for pointing out.

Regex literals are not understood by Swift compiler on Windows due to missing bootstrapping step (I’m surprised that this is an enabled feature because [Implementing Parts of the Swift Compiler in Swift](https://forums.swift.org/t/implementing-parts-of-the-swift-compiler-in-swift/59524) was posted long after Swift 5.7 branch cut-off).

To try getting it enabled, we may need to enable bootstrapping without SIL optimization module. Not sure if it’s supported now.

---

_[View the full topic](https://forums.swift.org/t/regex-literals-requires-quotation-marks-only-on-windows/63140)._
