fenom/docs/ru/mods/ematch.md
2014-08-01 12:12:19 +04:00

363 B

Modifier ematch

Perform a regular expression match. Read more about regular expression.

{$string|ematch:$pattern}

Searches $string for a match to the regular expression given in $pattern.

{if $color|ematch:'/^gr[ae]y$/i'}
  some form of gray ...
{/if}