• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Wanted: Regular Expression Lessons Critics

 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm putting together a series of lessons on learning the java.util.regex package. Parts one and two have been through a round of critiquing with the moderators and are now ready to be critiqued further by any interested volunteers.
If you are interested, email me at dirk@javaranch.com and let me know.
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
is this package in jdk1.4? i have 1.3.1 and i don't find it...
 
Ranch Hand
Posts: 1056
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there an easy way to install the 1.4 regexp package on top of a 1.3.1 JDK?
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
java.util.regex is part of the Java 1.4 API. You cannot just install this package on top of a Java 1.3 installation. If you want to use this package, you need to install the Java 2 SDK version 1.4. You could download and use one of the various free third party regular expression packages available. The regular expression syntax used with different packages may very.
 
Ron Newman
Ranch Hand
Posts: 1056
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The problem is that I have MacOS X, which supports only 1.3.1. Could I somehow get the source code for 1.4 regex, compile it, and patch it into my 1.3.1 jar files? Or are there native methods involved, which would make this impossible?
[ August 27, 2002: Message edited by: Ron Newman ]
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think this may work actually; I don't think there are any native methods, or significant dependancies on other 1.4 features. But I may have overlooked something. You can get the source from any of the JDK 1.4 downloads. Try compiling just the Matcher and Pattern class, and see what additional classes you need. Locate the source for these as well, and try again. Repeat until you either have a nice finite set of classes you need, or you get tired of the unending list of other things you must import, if that's what happens. (Or until you find something that requires a native method.) You may need to make other modifications, in which case I'd change the package name too so you don't confuse those classes with the "real" ones when they eventually arrive. Good luck; let us know if it works.
[ August 27, 2002: Message edited by: Jim Yingst ]
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Gee, this conversation sounds familiar...
 
Jim Yingst
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, it doesn't seem that our search utility is capable of actually finding such a past conversation based on such nebulous hints. So feel free to enlighten us.
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try http://www.cacas.org/java/gnu/regexp/
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, it doesn't seem that our search utility is capable of actually finding such a past conversation based on such nebulous hints.
It was over in the beginner's forum within the past two weeks.
So feel free to enlighten us.
Hmm... Wait a minute, I'm thinking of something clever to say... Gee, that sounds familiar.
 
reply
    Bookmark Topic Watch Topic
  • New Topic