Docs
API 1.39
Status
Fields

source

The `source` option of an extract field.

What regex is applied to: text (the default) or html.

Type: "text" | "html"

#Example

{
  "sku": {
    "regex": "SKU:\\s*([A-Z0-9-]+)",
    "source": "text"
  }
}

From the contract fixture product-page-list-regex-json, a program the test suite validates.

Was this page helpful?