Forum Stats

  • 3,722,791 Users
  • 2,244,415 Discussions
  • 7,850,094 Comments

Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

please match a line

user9124986
user9124986 Member Posts: 2 Green Ribbon
edited February 18 in Java Programming

I have been trying to get a regex match using Java. I have assigned the below line:

String line = "-rw-rw-r-- 1 sherman sherman   0 Feb 14 12:17 nonpedalSwing";

This is representation of what I am trying to seperate by parens: (-rw-rw-r-- 1 sherman sherman )(0)(Feb)(14)( 12:17 )(nonpedalSwing);

Using this I can then ask for sub 3 sub 4 sub 6 for use.

I am using Matcher and Pattern. I want to capture

Thank you; Sherman


Sign In or Register to comment.