• 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

Pattern Matching in Java 1.3

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Can any body tell me how pattern matching was done in java before 1.4 version was released. I understand the 1.4 version has the regex package tied to it but how similar stuff was done before this version. Please point me to any jar/API of any such downloadable tool.

Thanks
 
Ranch Hand
Posts: 539
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jakarta Oro is, I think, the most mature regexp library out there.


--Tim
 
Nitin Mehhta
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks ..Tim that was really helpful. Just to double check on this...would this work with jdk 1.3. ... i mean My machine has only a jdk 1.4 compiler ...so i cannot check it directly....but looks like this is not using any new feature which were introduced in jdk 1.4 ...
thanks for the help.
 
Tim West
Ranch Hand
Posts: 539
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can't find any doco that proves it, but currently we're using ORO extensively in an app running on JRE 1.3, so I'd say it'll be fine for you also.

I have a feeling it doesn't work on JREs < 1.3, but that's totally unsubstantiated.

To be safe, you really want to get the SDK v1.3 and do all your testing with that - all you need is someone to call String.split(...) or something equally banal, and your code is no longer OK for 1.3. You can get version 1.3 of the SDK here.


--Tim



--Tim
[ May 21, 2004: Message edited by: Tim West ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic