Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #28281

@Regex, the catch

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject @Regex, the catch
Date 2014-04-27 16:17 -0700
Organization Canadian Mind Products
Message-ID <lr3rl9hqdcecjaqia5mldm9e97t4vn5a3i@4ax.com> (permalink)

Show all headers | View raw


What you have to do to make @Regex work to validate your regex
strings?

eg. 

private static final Pattern INTERFACE_GRABBER =  Pattern.compile(
"(public)?\\s*"
 + "(abstract)?\\s*"
 + "interface\\s*\\(" );

Do you need some sort of import.

I am using JDK 1.8.0_05 with 1.8 targets.

Sun's documentation at
https://blogs.oracle.com/java-platform-group/entry/java_8_s_new_type

lacks a complete example.
-- 
Roedy Green Canadian Mind Products http://mindprod.com
Computers are like Old Testament gods; lots of rules and no mercy. 
~ Joseph Campbell (born: 1904-03-26 died: 1987-10-31 at age: 83)

Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

@Regex, the catch Roedy Green <see_website@mindprod.com.invalid> - 2014-04-27 16:17 -0700
  Re: @Regex, the catch Roedy Green <see_website@mindprod.com.invalid> - 2014-04-27 16:35 -0700
    Re: @Regex, the catch Jeff Higgins <jeff@invalid.invalid> - 2014-04-27 20:47 -0400
  Re: @Regex, the catch Roedy Green <see_website@mindprod.com.invalid> - 2014-05-01 05:32 -0700

csiph-web