Help for this page

Select Code to Download


  1. or download this
      DB<63> print join "|",'abc' =~ /a(.+?)(c)?/
    b|c
      DB<64> print join "|",'abd' =~ /a(.+?)(c)?/
    b|
    
  2. or download this
      DB<84> print join "|",'a<c1<c2' =~ /(.+?)<(c.)?/ # ok
    a|c1
    ...
    
      DB<86> print join "|",'a<b1<c2' =~ /(.+?)<(c.)?/ # oops
    a|
    
  3. or download this
      DB<89> print join "|",'a<b1<c2' =~ /(.+?)(c.)?/
    a|