<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Andreas,<br>
<br>
There is an error in the regex:<br>
</div>
<blockquote type="cite"
cite="mid:CAKdk67vL6EwznLBvJ37DEwpNKgKK91ssWmSKTHh6Pi3GRdOFMA@mail.gmail.com"><br>
<pre wrap="">Tangentially, repeated ranges also look not so nice but are apparently
common: [0-9a-fA-F]
[0-9]|[a-f|[A-F] reads better to me and that is why I preferred that.</pre>
</blockquote>
<br>
There should be a ']' after 'f'. Personally, I prefer the first form
[0-9a-fA-f] or even [a-fA-F\d]. If the entire string is case
insensitive then use the language-specific 'i' mode or surround the
entire string as in (?i)...[a-f\d]...(?-i) or shorter
(?i)...[a-f\d]...<br>
<br>
I prefer grouping all of the ranges together so that repeated
vertical-ness is not present as it would be with ']|['. It also
makes it clearer that the range of characters is all one unit.<br>
<br>
<br>
<div class="moz-signature">-- <br>
<font class="tahoma,arial,helvetica san serif" color="#333366">
<font size="+1"><b>Leonard Daly</b></font><br>
3D Systems & Cloud Consultant<br>
LA ACM SIGGRAPH Past Chair<br>
President, Daly Realism - <i>Creating the Future</i>
</font></div>
</body>
</html>