Forum Stats

  • 3,838,038 Users
  • 2,262,323 Discussions


please match a line

user9124986 Member Posts: 2 Green Ribbon
edited Feb 18, 2021 10:31PM 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