aspose file tools*
The moose likes Beginning Java and the fly likes Errors in Regular Expression example on Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Errors in Regular Expression example on Eclipse" Watch "Errors in Regular Expression example on Eclipse" New topic
Author

Errors in Regular Expression example on Eclipse

Rajiv Rai
Ranch Hand

Joined: Jun 14, 2010
Posts: 57
Hi
I am currently reading the regular expression tutorial provided by Oracle.

Following is a test program for understanding regex



When i try to run the above code example in eclipse it returns the Console object as null..
Hence the example cant run further.
What modifications do i have to do so that it runs in eclipse as well

Thanks
Tom Ellis
Greenhorn

Joined: Aug 02, 2011
Posts: 2
Hi Rajiv,

The Eclipse team are looking at fixing this - https://bugs.eclipse.org/bugs/show_bug.cgi?id=122429

As a workaround to get your example going, you can use System.in - so something like:

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Errors in Regular Expression example on Eclipse