jakarta-regexp-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gerald Klinkl <gerald.kli...@siemens.at>
Subject Not a letter
Date Fri, 19 Jan 2001 10:16:22 GMT
Hi

I've tried to define a regular expression which
match all except letters and should work for
unicode too. I have tried

RE noLetter = new RE ("[:cntrl:]|[:digit:]|[:punct:]");
or
RE noLetter = new RE ("[^[:alpha:]]");

but nothing work like expected. In the first
case ^<> aren't match for example, in the second
case I got a RESyntaxException. Is there no
easy way to define a regular expression which
match all except letters like \P{IsApha} or
[^[:alpha:]] in perl?

Gerald

-- 
----------------------------------------------
Ing. Gerald Klinkl        Siemens Inc. Austria
Senior Consultant
Phone: +43-51707-47044,   Fax: +43-51707-56659
E-Mail: gerald.klinkl@siemens.at
Mime
View raw message