Help for this page

Select Code to Download


  1. or download this
        if($line =~ /Handling NSPAdvice for mechanism [4]/) {
        # the RE above would match "Handling NSPAdvice for mechanism 4"
    
  2. or download this
        if($line =~ /Handling NSPAdvice for mechanism \[4\]/) {
        # alternative: if ( index($line,'Handling NSPAdvice for mechanism 
    +[4]')>=0 ) {
    
  3. or download this
                if ($line =~ /Authentication mechanism returned [[](\S*)[]
    +]/) {
    
  4. or download this
                if ($line =~ /Authentication mechanism returned \[(\-?\d+)
    +\]/) {
                # the RE above would match e.g. [4] -> $1=4,  [-10] -> $1=
    +-10, etc.