@dallaylaen/ski-interpreter
    Preparing search index...

    Class Tokenizer

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    rex: RegExp

    Create a tokenizer that splits strings into tokens according to the given terms. The terms are interpreted as regular expressions, and are sorted by length to ensure that longer matches are preferred over shorter ones.

    Methods

    • Split the given string into tokens according to the terms specified in the constructor.

      Parameters

      • str: string

      Returns string[]