<div dir="ltr"><div><a href="http://www.manpagez.com/man/3/regcomp/">http://www.manpagez.com/man/3/regcomp/</a><br></div><div><pre style="font-size:10pt;line-height:13px;color:rgb(51,51,51)"> REG_ENHANCED Recognized enhanced regular expression features; see <b><a href="http://www.manpagez.com/man/7/re_format/" style="text-decoration:none">re_format(7)</a></b> for details. This is an extension not specified by IEEE Std 1003.2 (``POSIX.2''), and should be used with caution in software intended to be portable to other systems.</pre><pre style="font-size:10pt;line-height:13px;color:rgb(51,51,51)"><br></pre><pre style="font-size:10pt;line-height:13px;color:rgb(51,51,51)">=(</pre><pre style="font-size:10pt;line-height:13px;color:rgb(51,51,51)"><br></pre></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 20, 2015 at 3:54 PM, Zachary Turner <span dir="ltr"><<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">s/Linus/Linux/<div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">On Tue Jan 20 2015 at 3:50:10 PM Zachary Turner <<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Linus doesn't appear to have REG_ENHANCED. </div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 20, 2015 at 3:37 PM, Greg Clayton <span dir="ltr"><<a href="mailto:gclayton@apple.com" target="_blank">gclayton@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The code below fails to match the string "a" to the regex "^a$" on MacOSX if both "REG_EXTENDED | REG_ENHANCED" are specified, but it will pass if just REG_ENHANCED is used.<br>
<br>
Can someone run this on linux to see if the code below fails as well on linux? I want to make sure it isn't just an old version of regex we have in our libc...<br>
<br>
<br>
<br>
#include <stdio.h><br>
#include <stdint.h><br>
#include <regex.h><br>
<br>
#define DEFAULT_REG_FLAGS (REG_EXTENDED | REG_ENHANCED)<br>
<br>
int main (int argc, char const *argv[], char const *envp[])<br>
{<br>
regex_t re;<br>
const char *regex_input = "a";<br>
int err = regcomp (&re, "^a$", DEFAULT_REG_FLAGS);<br>
if (err == 0)<br>
{<br>
err = regexec (&re, regex_input, 0, NULL, DEFAULT_REG_FLAGS);<br>
if (err == 0)<br>
{<br>
puts("matched");<br>
}<br>
else<br>
{<br>
char error_str[2048];<br>
const size_t actual_error_str_size = regerror(err, &re, error_str, sizeof(error_str));<br>
puts(error_str);<br>
}<br>
}<br>
return 0;<br>
}<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
</blockquote></div><br></div>
</blockquote></div>
</div></div><br>_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><br><table cellspacing="0" cellpadding="0" style="font-family:'Times New Roman'"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small"><td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Vince Harron |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Technical Lead Manager |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:vharron@google.com" target="_blank">vharron@google.com</a> |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"> 858-442-0868</td></tr></tbody></table><br></div></div>
</div>