<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">This seem to be two proposals in one:</div><div class="">1. Initialize NSRegularExpression with a single String which includes options</div><div class=""><br class=""></div><div class="">The ultimate goal based on the earlier mail in the thread seems to be able in a future proposal do thing like: string ~= replacePattern, if string =~ pattern, decoupled from the legacy Obj-C. Isn’t NSRegularExpression part of the legacy? The conversion of the literal string as regular expression should probably part of the proposal for these operators; as this is the time we will know how we want the text to be interpreted.</div><div class=""><br class=""></div><div class="">2. Easily create a String without escaping (\n is not linefeed, but \ and n)</div><div class=""><br class=""></div><div class="">The ability to not interpret the backslash as escape can be useful in other scenario that creating a NSRegularExpression; like creating a Windows pathname, or creating regular expression which are then given to external tool. &nbsp;So this part of the proposal should probably be generalized.</div><div class=""><br class=""></div><div class="">Dany</div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">Le 31 janv. 2016 à 12:18, Patrick Gili via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; a écrit :</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Here is the link to the proposal on GitHub:<div class=""><br class=""></div><div class=""><a href="https://github.com/gili-patrick-r/swift-evolution/blob/master/proposals/NNNN-regular-expression-literals.md" class="">https://github.com/gili-patrick-r/swift-evolution/blob/master/proposals/NNNN-regular-expression-literals.md</a></div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">-Patrick</div></div></div></blockquote></div><br class=""></body></html>