@yookue/ts-lang-utils
    Preparing search index...

    Function compilePattern

    • Returns a regex that compiled by the given pattern

      Parameters

      • Optionalpattern: null | string

        the pattern to inspect

      • Optionalflags: string

        any combination of flag values

      Returns undefined | RegExp

      a regex that compiled by the given pattern

      David Hsing

      compilePattern('[a-zA-Z0-9]+', 'g');