View Full Version : Regular Expressions in Java
lucifer
June 18th, 2001, 08:22
Java - it's a cool language
it must have Regular Expressions somewhere
I can't find them :(
does anyone know what classes they are in?
thanx
atlas
June 18th, 2001, 17:49
http://www.cs.umd.edu/users/dfs/java/
However, there might be better stuff now. (I don't like Java much, so I haven't used it in a while :) )
atlas
June 18th, 2001, 17:51
Yeah, it seems there a quite a few now. A little search yielded
http://javaregex.com/
which appears decent
lucifer
June 18th, 2001, 18:04
thanks atlas :)
the first one has a free licence which is good cos I want to sell the thing I'm writing - only for like $5 or something
Yeah, I don't use it much - takes to long to write - php is so much quicker - but I need to have multiple threads so I have only one choice as far as I can tell. could use C but it could crash the server if I divide by 0 or something ;)
I don't understand why they left reg exps out of the core classes :confused:
atlas
June 18th, 2001, 18:26
C++ doesn't have regex built-in either. I guess they didn't intend it as much as a text-processing type of language as perl or python.
Perl's threads are *terrible* -- java's threads are nice :)
lucifer
June 19th, 2001, 05:24
does perl have 'threads' I didn't think it did.
atlas
June 19th, 2001, 05:52
They are in the "experimental" stage. You have to add support when you're compiling perl
gyrbo
June 19th, 2001, 09:08
Can you compile perl? Where can I get a windows compiler?
lucifer
June 19th, 2001, 10:15
he means when you're installing it.
Perl's written in C++ or something I think
perl interpreter from www.activestate.com
atlas
June 19th, 2001, 16:25
Yeah, when compiling the perl interpreter on linux and unix there's an option to build in thread support
It also is possible to compile perl scripts (again, I don't use windows -- so I only know it works on linux and unix). You really don't want to do this though since it compiles in the whole interpreter into a file with your script -- so HUGE binary file :)
-mk
lucifer
June 19th, 2001, 16:57
Originally posted by atlas
it compiles in the whole interpreter into a file with your script -- so HUGE binary file :)
nice :)
lucifer
June 20th, 2001, 18:32
if anyone wants to know
FREE java regular expression classes and other fun stuff at http://www.savarese.org/oro/ :cool:
atlas
June 20th, 2001, 18:41
I'm having problems with the DNS lookup of that host, but I'll remember it for future reference.
Thanks
lucifer
June 20th, 2001, 18:49
it's OK for me (just checked0 got a whois class and everything
I like it :)
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.