Help for this page

Select Code to Download


  1. or download this
    $constraint =~ m@
        ^\s*        # skip all whitespace at beginning
    ...
        [cgimosx]*    # ?? don't understand what this is for. what are we 
    +trying to match? I thought the ops were matched above
        \s*$        # skip all whitespace at end
        @x
    
  2. or download this
    my $input = 'http://www.knowmad.com/';
    my $constraint_good = '/[\\!@#%&_:\$\^\*\(\)\+\.\/]+/';
    ...
    } else {
        print "no good.\n"
    }
    
  3. or download this
    matched
    Error compiling regular expression /[!@#%&_:\$\^\*\(\)\+\.\/]+\/: Sear
    +ch pattern not terminated at (eval 2) line 1.