Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Regex

Parse data base on regex pattern

- Regex: 
    title: Extract title content
    input: <title>test</title>
    actions: match # match | exec | test
    pattern: /<title>(.*?)<\/title>/
    var: result

- Echo: ${result}

Hierarchy

  • Tag
    • Regex

Index

Constructors

constructor

  • new Regex(attrs: any): Regex
  • Parameters

    • attrs: any

    Returns Regex

Properties

action

action: "test" | "match" | "exec"

Regex method to execute

async

async: boolean

Run async

disabled

disabled: boolean

Ignore this, not run

ignoreError

ignoreError: boolean

Keep run the next when got error

input

input: string

Data string input

pattern

pattern: string

Regex pattern

slient

slient: boolean

Not show log

testIt

testIt: boolean

Only allow run it then ignore others which not set testIt or set it to false

title

title: string

Step title

value

value: any

Raw value

var

var: string | object

Set data after regex executed done

vars

vars: any

Declare global variable