jQuery in Action, 3rd edition
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

Regex (simple)

Justin Filmer

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

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

I used the docs here to figure it out:

Darryl Burke

Joined: May 03, 2008
Posts: 5093

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)
It's not a secret anymore!