Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #28221
| From | markspace <markspace@nospam.nospam> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Debugging regexes |
| Date | 2014-04-25 00:17 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <ljd261$7p8$1@dont-email.me> (permalink) |
| References | <kd1il9po8nstd06tt2pqfe741hg48885r7@4ax.com> <1q2dnYufsIxhvMTOnZ2dnUVZ8iudnZ2d@giganews.com> <8mkjl9tia53ot69tpsqurnnfslq3ivgg26@4ax.com> |
On 4/24/2014 8:21 PM, Roedy Green wrote: > Those are good tips. I often define named constants and build my > regexes out of trusted bits. > > My two most common errors are: > forgetting to quote something like - . ( ) $ > using \\ when I should have used \ and vice versa. Sometimes I build > regexes in files, sometimes in Java source. A new Java 8 annotation checks regex syntax: @Regex – Provides compile-time verification that a String intended to be used as a regular expression is a properly formatted regular expression https://blogs.oracle.com/java-platform-group/entry/java_8_s_new_type
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Debugging regexes Roedy Green <see_website@mindprod.com.invalid> - 2014-04-24 05:39 -0700
Re: Debugging regexes leif.roar@invalid.com (Leif Roar Moldskred) - 2014-04-24 09:38 -0500
Re: Debugging regexes Roedy Green <see_website@mindprod.com.invalid> - 2014-04-24 20:21 -0700
Re: Debugging regexes markspace <markspace@nospam.nospam> - 2014-04-25 00:17 -0700
Re: Debugging regexes Roedy Green <see_website@mindprod.com.invalid> - 2014-04-25 01:05 -0700
Re: Debugging regexes Gene Wirchenko <genew@telus.net> - 2014-04-25 10:09 -0700
Re: Debugging regexes Roedy Green <see_website@mindprod.com.invalid> - 2014-05-05 23:19 -0700
csiph-web