# Reference

|    Name    |                   Description                  |  Example  |
| :--------: | :--------------------------------------------: | :-------: |
|      g     |                 global boundary                | /\[a-z]/g |
|   globle   |                test g is or not                |           |
|      i     |                case-insensitive                | /\[a-z]/i |
| ignoreCase |                test i is or not                |           |
|      .     |          any character except newline          |    /\*/   |
|     \w     |              word equal to \[A-z]              |    /\w/   |
|     \W     |        not word equal to  \[]\*%$@# etc        |    /\W/   |
|     \d     |              digit equal to \[0-9]             |    /\d/   |
|     \D     | not digit  equal to anything except for \[0-9] |    /\D/   |
|     \s     |                   whitespace                   |    /\s/   |
|     \S     |                 not whitespace                 |    /\S/   |
|   \[ABC]   |    select A, B or C; if it's \[D], select D    |  /\[ABC]/ |
|   \[^ABC]  |       not select A, B or C; select others      | /\[^ABC]/ |
|     \b     |         select a word the last alphabet        |   /ed\b/  |
|     \D     |       select a word not the last alphabet      |   /ed\D/  |
|      ^     |                      start                     |   /^ed/   |
|      $     |                       end                      |   /ed$/   |


---

# 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.luckydesigner.space/regular-expressions/reference.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.
