<div dir="ltr">Yes, (|D|PP) is nothing, 'D', or 'PP'.<br><br>I'm not sure what zero you're referring to, though. I didn't post it, but '0' and 'D0' and 'PP0' match.<br><br>
The basics are:<br>match a leading nothing, 'D' or 'PP', followed by between 1 and 3 digits, followed by zero or more sets of three digits with an optional leading comma.<br><br>I just realized there's a slight problem with this: '1,234567' will match, which isn't ideal. You'll have to decide if that's significant. If so, split it into two regexes, one with commas and one without. Otherwise, you could do this (not recommended due to obtuseness):<br>
<br>(\s|^)(|D|PP)\d{1,3}(,(\d{1,3}(,\d{1,3})*)|(\d{1,3})*)(\s|$)<br><br>This will match '12,345,678' and '12345678', but not '12,345678'.<br><br>Chris<br><br><div class="gmail_quote">On Fri, Jul 25, 2008 at 10:23 PM, Nathan C. Smith <span dir="ltr"><<a href="mailto:nathan.smith@ipmvs.com">nathan.smith@ipmvs.com</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;">Is this- (|D|PP) Nothing, or D or PP ? Interesting.<br>
<br>
Yeah, 0 probably should be a possibility.<br>
<br>
Thank-you for your help with this little puzzle.<br>
<br>
-Nate<br>
<div><div></div><br></div></blockquote></div><br></div>