<div>Thank you very much!!</div><div><br></div><div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8">On Fri, Jun 3, 2011 at 23:47, Carl Eastlund <span dir="ltr"><<a href="mailto:cce@ccs.neu.edu">cce@ccs.neu.edu</a>></span> wrote:<blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
<div class="im">>> I'm curious about 2 design decisions made:<br>>> 1) Why do I have to escape things like "\d{2}" -> "\\d{2}"?<br>[...]<br><br></div>To clarify this, Racket reuses the syntax of strings for regexps. A<br>
regexp is first read as a string, then parsed into a regular<br>expression. So if "\d" is the same as "d" as a string, the regexp<br>parser never sees the backslash. We do not currently have a reader<br>
for regexps that skips this intermediate step.<br><br></blockquote><div><br></div><div><br></div><div>So I assume it's more of a matter of convenience and consistency, right?</div><div>It could well be done like "perl", as long as we create an specific reader.</div>
<div> </div></div><div><br></div><div><br><div class="gmail_quote">On Fri, Jun 3, 2011 at 23:49, Carl Eastlund <span dir="ltr"><<a href="mailto:cce@ccs.neu.edu">cce@ccs.neu.edu</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">[..]<br>
<br>
</div>The origin of #px is "Perl-compatible regular expression", while #rx<br>
are compatible with command-line tools such as egrep.<br><br></blockquote><div><br></div><div>:)</div><div><br></div><div>It seems that it's not yet documented. Good to know, now I can choose between Perl and power :D</div>
</div><br></div>