> For the complete documentation index, see [llms.txt](https://docs.goless.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.goless.com/blocks/data/regex-variable-block.md).

# RegEx Variable Block

Match one variable to one [regular expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions).

* **Variable name**\
  The name of the variable
* **RegEx**\
  The regular expression will be used to match the variable's value. For instance, if you use `\d+` with this expression, GoLess will return only the digits inside the variable value
