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

Processing - tolower and toupper

Table of contents
  1. tolower
  2. toupper
  3. Example

tolower

  • tolower(variable)

Return a copy of the input string that is converted to lower case.

toupper

  • tolower(variable)

Return a copy of the input string that is converted to upper case.

Example

search {from="-3d@d",to="@d"} sContent("@event_type","@azureSignIn")
let username=f("@azureSignIn.userPrincipalName")
let {name,domain}=regexp("(?<name>.*)@(?<domain>.*)",username)
let name2=toupper(name)
table username,name,name2

In this example, the variable “name” is in lower case. After using let name2=toupper(name), all the strings in this variable are converted to upper case.