You are viewing a plain text version of this content. The canonical link for it is here.
Posted to regexp-user@jakarta.apache.org by Ol...@mummert.de on 2003/02/17 12:16:46 UTC

Expressions "[X0-9][0-9]{4}" and "[0-9X][0-9]{4}" not equivalent?

Hello!

I have a problem with the following expression: [X0-9][0-9]{4}

IMHO the string X1234 should match the expression, but RegExp 1.2 does not
think so...;-(

When I use the expression: [0-9X][0-9]{4} instead, everthing works as
expected.

But IMHO the expressions should be equivalent.

What is wrong?

Regards
Oliver


---------------------------------------------------------------------
To unsubscribe, e-mail: regexp-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: regexp-user-help@jakarta.apache.org