Help for this page

Select Code to Download


  1. or download this
    $str= "bbbcccbbb"
    while( $str =~ /b*/g ) { print "($`)<$&>($')\n" }
    ...
    (bbbcc)<>(cbbb)
    (bbbccc)<bbb>()
    (bbbcccbbb)<>() <-- This one
    
  2. or download this
    a
    bbbcccbbb
    .
    s/(b*)/x\1/g
    
  3. or download this
    xbbbcxcxcxbbb
       /\       /\ no "x"s there