> ## Documentation Index
> Fetch the complete documentation index at: https://docs.turntable.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Regex Operations

## re.extract

Return the specified match at index from a regex pattern.

The behavior of this function follows the behavior of Python’s match objects: when index is zero and there’s a match, return the entire match, otherwise return the content of the index-th match group.

<Accordion title="Parameters">
  <ParamField body="pattern" type="str | StringValue" required={true} />

  <ParamField body="index" type="int | IntegerValue" required={true} />
</Accordion>

## re.replace

Replace the matches of a regex pattern with a replacement string.

<Accordion title="Parameters">
  <ParamField body="pattern" type="str | StringValue" required={true} />

  <ParamField body="replacement" type="str | StringValue" required={true} />
</Accordion>

## re.search

Returns True if the regex pattern matches a string and False otherwise.

<Accordion title="Parameters">
  <ParamField body="pattern" type="str | StringValue" required={true} />
</Accordion>

## re.split

Split the expression using a regex pattern.

<Accordion title="Parameters">
  <ParamField body="pattern" type="str | StringValue" required={true} />
</Accordion>

## re.upper

Return a copy of the expression with all characters uppercased.
