Search Results

Search: Posts Made By: Noremak17
Forum: Programming 02-11-2011
3,343
Posted By durden_tyler
$ $ $ # Display the content of the Java...
$
$
$ # 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...
Forum: Programming 02-11-2011
3,343
Posted By pludi
Create a pattern using Pattern p =...
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...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 06:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy