Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- String test = "./skulltag-server_auto test=test";
- String pattern = "([A-Za-z0-9_\\-]*)=\"(.*?)\"|([A-Za-z0-9_\\-]+)=([^\t\n]*)";
- Pattern r = Pattern.compile(pattern);
- Matcher m = r.matcher(test);
- while(m.find()){
- for(byte i=0;i<m.groupCount();i++){
- System.out.println(m.group(i));
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment