$
$
$ # Display the content of the Java program
$
$ cat -n ExtractSidPid.java
1 import java.util.regex.Matcher;
2 import java.util.regex.Pattern;
3 public class ExtractSidPid...
Create a pattern using
Pattern p = Pattern.compile( "sid=(0x[a-z0-9]+)\s+pid=(0x[a-z0-9]+)" );
and then match it against your input using
Matcher m = p.matcher( input );
m.group( 1 ) will then be...