<br><br><div class="gmail_quote">On Mon, Nov 9, 2009 at 12:22 PM, Dave Stevenson <span dir="ltr"><<a href="mailto:stevendt@primrosebank.net">stevendt@primrosebank.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff">
<div><font face="Arial" size="2">I **think** that the following will match any three
character strings from 1xx to 399</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">I want to exclude 100 though, can anyone help me
with the required RegEx please ?</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">^([1-3][0-9][0-9])$</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">I could (I think) do </font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">^([1-3][1-9][0-9]|[2-3][0-9][0-9])$</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">But it does not "feel" elegant - is there a better
way ?</font></div>
<div><font face="Arial" size="2"></font> </div></div></blockquote><div><br>expression="^[1-3]\d\d$" will match 100 to 399<br>-MC<br></div></div><br>