# Regexes
{id: regexes}


## Alternate delimiter matching slashes
{id: alternate-delimiter}
{i: %r}

![](examples/regexes/match_slash.cr)

## Substitute
{id: substitute}
{i: sub}
{i: gsub}

* `gsub` is the global substituted or /g in other languages.

![](examples/regexes/substitute.cr)
![](examples/regexes/substitute.out)

## gsub
{id: gsub}

![](examples/regexes/gsub.cr)

