Help for this page

Select Code to Download


  1. or download this
    
       On *nix:
    ...
       On Windows (I think):
        perl -pi -e "s{\b((?:[a-zA-Z0-9]+_)+[a-zA-Z0-9]+\(\)\b}{<a href=\"
    +$1.html\">$1()</a>}g" *
    
  2. or download this
        s{                              # match and replace on $_
          \b                            # start with a word boundary
    ...
           <a href="$1.html">$1()</a>   # replace the matched text with th
    +is string
         }                              # substituting the value of $1 (th
    +e first capture)
         g                              # perform this replace on all matc
    +hes in $_
    
  3. or download this
        abc
        abc()
    ...
        <a href="abc_def_ghi.html">abc_def_ghi()</a>
        <a href="abc_def_ghi.html">abc_def_ghi()</a>()