Bitbybit Docs
    Preparing search index...

    Class TextRegexReplaceDto (Inputs.Text)

    A text, a regular expression and a replacement for text.regexReplace.

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • Optionaltext: string
      • Optionalpattern: string
      • Optionalflags: string
      • OptionalreplaceWith: string

      Returns TextRegexReplaceDto

    Properties

    text: string

    The text to make the replacements in.

    hello123world456
    
    pattern: string

    The regular expression, written as it would be between the slashes in JavaScript, such as [0-9]+.

    [0-9]+
    
    flags: string

    The regular expression flags: g replaces every match instead of the first, i ignores case, and m, s, u, y work as in JavaScript.

    g
    
    replaceWith: string

    The text that takes the place of each match; $1 and the like refer to capture groups, as in JavaScript.

    X