# Extraction Rules

This prop only applies to UI Elements. &#x20;

Prop Name: prop.extraction.operation

Extraction Options

| Rule                                 | Rule Desc                                                                 | Example                                      |
| ------------------------------------ | ------------------------------------------------------------------------- | -------------------------------------------- |
| trim.remove.text                     | Remove text chars in the String                                           |                                              |
| trim.remove.spaces                   | Removes all Spaces in the string                                          |                                              |
| trim.remove.invisiblechars           | Removes chars newline, return etc which are not visible                   |                                              |
| trim.remove.allspecial               | Removes all special chars (chars not an alphabet or number)               |                                              |
| trim.to.numbers                      | Removes all the chars that are numbers                                    |                                              |
| trim.to.alphanumeric                 |                                                                           |                                              |
| left:\[number or text]               | Gets left chars of specified number or text to the left of given phrase   |                                              |
| right:\[number or text]              | Gets right chars of specified number or text to the right of given phrase |                                              |
| replace:\[original text]:\[new text] | Find original text and replace with new text phrase                       | Example: replace:\[%20]:\[ ]                 |
| substring:\[start]-\[end]            | Extracts string that's in between start index and end index               | start/end can be either a number or a phrase |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.qatts.com/extraction-rules.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
