aspose file tools*
The moose likes Java in General and the fly likes Regular Expression question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Regular Expression question" Watch "Regular Expression question" New topic
Author

Regular Expression question

Karthik Veeramani
Ranch Hand

Joined: Dec 22, 2002
Posts: 132
I need to do a lot of pattern matching, parsing etc. for a certain high speed application. Which is the best api in java to do this (note that i need real good performance). I heard regular expr. is really fast, so thought about the java.util.regex package... but the prblem is i cant use 1.4 version. so is that package available for download, and can b used with 1.3? Please help.


Thanks<br />Karthik<br />SCJP 1.4, CCNA.<br /> <br />"Success is relative. More the success, more the relatives."
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61209
    
  66

Check out the Jakarta Regexp project.
I can't speak to its performance characteristics, though I have not found any performance problems while using it in my own code.
hth,
bear
[ January 02, 2003: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
Have you looked at the new java.util.regex package in JDK1.4? It offers pretty good utilities and because it is a part of the core language, might offer you better performance too.
Check it out!


Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Karthik Veeramani
Ranch Hand

Joined: Dec 22, 2002
Posts: 132
Hi Ajith,
Yes i was talkin about java.util.regex. But the problem is, I shdnt use java 1.4 but only 1.3. Is there a separate download for that package alone, so that it can be used with 1.3.
Hi Bear, Im still looking into the link you sent. Thanks for that.
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
Is there a separate download for that package alone, so that it can be used with 1.3.
Not for the actual java.util.regex classes - but there are similar packages such as the one Bear linked to. Another is Jakarta ORO. I've no idea which is better, but both have been used successfully by a lot of people I think.


"I'm not back." - Bill Harding, Twister
Karthik Veeramani
Ranch Hand

Joined: Dec 22, 2002
Posts: 132
Thanks!!! I'll check it out... btw, any idea wat kind of license that has? coz i need it for a commercial product. Is it enough that we hav apache license, coz we already do i think.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regular Expression question