Are you certain this does exactly what I was referring to?

I want to match any sequence of four digits, except the sequence "0000".
However, other occurances of "0" should be allowed, like "0123", "9100",
etc.

The pattern you gave me appears to exclude all occurances of "0", which
is not what I wanted. Please correct me if I'm wrong.

Thank you,

Bryan

On Mon, 2002-02-04 at 01:31, Edward Q. Bridges wrote:

    [1-9]{4,6}
    
    hth
    --e--
    
    
    On 02 Feb 2002 09:14:57 -0700, Bryan Field-Elliot wrote:
    
    >Hi,
    >
    >I'm struggling to create a regular expression, which will match any
    >four, five, or six digits EXCEPT "0000" (four zeros). Not sure how to do
    >this. Any help would be greatly appreciated!
    >
    >Thank you,
    >
    >Bryan
    >
    >
    >
    >
    >
    >
    
    
    
    

Reply via email to