Help for this page

Select Code to Download


  1. or download this
    $string = "hereiam[[[one]]] [[[two]]][[[three]]]  wwhat     ";
    # regex
    ...
    foreach $result (@strings){
        print "\"$result\"\n";
    }
    
  2. or download this
    while ($string =~ /\[\[[(.*?)\]]\]/ig) {
            print "The pattern I care about is \"$1\"\n";
    }