Help for this page

Select Code to Download


  1. or download this
    static int CountParam(char* statement) {
        char* ptr = statement;
    ...
        }
        return numParam;
    }
    
  2. or download this
    # Count question marks that are not in (escapable) quotes
    sub CountParam {
    ...
            | [^?"']+             # Anything else
        )/sgx;
    }