Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Data Extraction - listfind

Table of contents
  1. listfind

listfind

  • listfind(“[patternName]:(?.*)",variableName) The command `listfind` is to extract pattern from a list of strings.

Example:

load resource office365Device
let {physicalIds, deviceVersion} = f("@office365Device")
let {}=listfind("\[USER-GID]:(?<userid>.*)",physicalIds)

In the example above, the variable “physicalIds” contains four patterns (“USER-GID”, “GID”, “USER-HWID” and “HWID”) and the first one is extracted as a variable “userid” by using the command listfind.