Help for this page

Select Code to Download


  1. or download this
    m|\*\*(\w+)\b|g
  2. or download this
    while($text =~ m|\*\*(\w+)\b|g) {
        print "Found: " , $1 , "\n";
    }
    
  3. or download this
    m|
     \*     #literal asterisk
    ...
     )      #end capture
     \b     #word boundary
    |gx     #/x allows whitespace, /g makes it global (restart from last m
    +atch position in this case)