Help for this page

Select Code to Download


  1. or download this
    left          \1=left \2=
    right         \1=     \2=right
    rightabc      \1=     \2=rightabc
    leftright     \1=left \2=right
    leftrightabc  \1=left \2=rightabc
    
  2. or download this
    s/(.*)(right)?/\1 <> \2/
    
    echo "left"|perl -ne 'print if s/(.*)(right)?/\1 <> \2/'              
    +  left <>
    echo "right"|perl -ne 'print if s/(.*)(right)?/\1 <> \2/'             
    +  right <>
    echo "leftright"|perl -ne 'print if s/(.*)(right)?/\1 <> \2/'         
    +  leftright <>
    
  3. or download this
    s/(.*(?=right.*)|(.*))/\
    
    echo "left"|perl -ne 'print if s/(.*(?=right.*)|(.*))/\1 <> \2/'      
    +  left <> left
    echo "right"|perl -ne 'print if s/(.*(?=right.*)|(.*))/\1 <> \2/'     
    +  <> right
    echo "leftright"|perl -ne 'print if s/(.*(?=right.*)|(.*))/\1 <> \2/' 
    +  left <> right