jakarta-regexp-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Goldberg" <e...@askit.com>
Subject [:graph:]
Date Mon, 21 May 2001 23:40:46 GMT
Hello list,

I am trying to write a re to match email addresses:

	r = new RE("^[:graph:]+@[:graph:]+\\.[:graph:]+$");

But this does not match on simple email addresses (e.g. eric@askit.com).
When I change the graph's to alnum's, it does match.

	r = new RE("^[:alnum:]+@[:alnum:]+\\.[:alnum:]+$");

My understanding is that graph includes all printable and visible characters
(i.e. alnum plus all punctuation).  Am I understanding graph incorrectly?
Has anyone else experienced unexpected results with [:graph:]?


View raw message