# SE-0351 (second review): Regex Builder DSL

**URL:** <https://forums.swift.org/t/se-0351-second-review-regex-builder-dsl/58721>\
**Category:** Proposal Reviews\
**Created:** [July 6, 2022, 9:21am UTC](https://forums.swift.org/t/se-0351-second-review-regex-builder-dsl/58721 "2022-07-06T09:21:42Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![paiv](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/paiv/32/4041_2.png) [@paiv](https://forums.swift.org/u/paiv)\
**Post date:** [July 6, 2022, 6:34pm UTC](https://forums.swift.org/t/se-0351-second-review-regex-builder-dsl/58721/2 "2022-07-06T18:34:54Z")

</div>

There is a discrepancy between SE-0351 and SE-0363 in how `anchorsMatchLineEndings` is defined

SE-0351

```swift
  /// This anchor is equivalent to `^` in regex syntax when the `m` option
  /// has been enabled or `anchorsMatchLineEndings(true)` has been called.
  public static var startOfLine: Anchor { get }

```

SE-0363

> This option applies only to anchors used in regex syntax. The anchors defined in RegexBuilder are specific about matching at the start/end of the input or the line, and therefore are not affected by this option.

[Last time I checked](https://forums.swift.org/t/regexbuilder-line-anchors/) the behavior defined in SE-0363 was not implemented.

- [https://forums.swift.org/t/se-0363-unicode-for-string-processing/](https://forums.swift.org/t/se-0363-unicode-for-string-processing/)
- [https://forums.swift.org/t/regexbuilder-line-anchors/](https://forums.swift.org/t/regexbuilder-line-anchors/)

---

_[View the full topic](https://forums.swift.org/t/se-0351-second-review-regex-builder-dsl/58721)._
