aspose file tools*
The moose likes Beginning Java and the fly likes Regex (simple) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Regex (simple)" Watch "Regex (simple)" New topic
Author

Regex (simple)

Justin Filmer
Greenhorn

Joined: Jul 04, 2011
Posts: 27
Let's say I have this set of lines in a text file:


I need to pull out the array of strings so that the resulting output is:


Basically, I'm thinking I need to look for an equal sign, then ignore any number of whitespaces, find the max length of alaphanumeric text until hitting a ".$"
Any help would be appreciated! Thanks!
Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

please provide as much code as possible
Justin Filmer
Greenhorn

Joined: Jul 04, 2011
Posts: 27
Nevermind, it was much simpler than I thought...

I used the docs here to figure it out:
http://download.oracle.com/javase/tutorial/essential/regex/pre_char_classes.html

Thanks
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4658
    
    5

Here's another good learning resource: http://www.regular-expressions.info/

luck, db
There are no new questions, but there may be new answers.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regex (simple)