# regex datum

Source: https://ref.dm-lang.org/regex/
Added in BYOND 510.

The /regex datum holds a regular expression that can be used for searching and/or replacing text. Rather than searching for a specific piece of text, a regular expression is a *pattern* to search for. This can include things like wildcards. See [Regular expressions](https://ref.dm-lang.org/notes/regex.md) for more information.

A new regular expression can be created with regex() or new/regex().

### See also
- [Regular expressions](https://ref.dm-lang.org/notes/regex.md)
- [regex procs](https://ref.dm-lang.org/regex/proc/index.md)
- [regex vars](https://ref.dm-lang.org/regex/var/index.md)
- [regex proc](https://ref.dm-lang.org/proc/regex.md)
- [REGEX_QUOTE proc](https://ref.dm-lang.org/proc/REGEX_QUOTE.md)
- [findtext proc](https://ref.dm-lang.org/proc/findtext.md)
- [splittext proc](https://ref.dm-lang.org/proc/splittext.md)
- [stddef.dm file](https://ref.dm-lang.org/appendix/stddefdotdm.md)

## Pages

- [regex procs](https://ref.dm-lang.org/regex/proc/index.md)
- [regex vars](https://ref.dm-lang.org/regex/var/index.md)
