Sign in to follow this  
Lucidquiet

[java] Is there a Sed & Awk written in java?

Recommended Posts

Lucidquiet    199
I'm currious -- does anyone know of a Sed & Awk written in Java -- it would be kind of cool if there was -- but there probably isn't I don't know -- and I've googled for it. There is javaCC, but not exactly the same thing -- just in the smae spirit of Unix. L-

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
Are you just looking for regex support? Java has good support for that in the java.util.regex package. Not sure when it was put in, but it's definitely in 1.4.2 and up. If you're looking for something more rudimentary, you can use StringTokenizers.

http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/package-summary.html

Share this post


Link to post
Share on other sites
Lucidquiet    199
I'm not looking for just regexp support. I'm looking for something more like AWK, but I think I've found it in ANTLR...at least from a entirely different sort of way. But still if there is a SED or AWK that is build in Java, I would be interested in taking a look at it.

L-

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this