I am trying to Take the content between Input, my pattern is not doing the right thing please help.
below is the sudocode:
s=\"Input one Input Two In
import java.util.regex.*; public class Regex { public static void main(String[] args) { String s="Input one Input Two Input Three"; Pattern pat = Pattern.compile("(Input) (\\w+)"); Matcher m = pat.matcher(s); while( m.find() ) { System.out.println( m.group(2) ); } } }