Manual:Regular Expressions

From MikroTik Wiki
Revision as of 09:29, 17 September 2020 by Marisb (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

RouterOS support POSIX regular expression syntax (POSIX standard), with some exceptions:

  • "()" must not be empty;
  • equivalence classes are not supported ("[[.ch.]]");
  • collating elements are not supported ("[[=a=]b]");
  • matching is done in single pass, no backtracking.

Following services in RouterOS are using Regexps:

  • firewall L7 matchers
  • BGP filters
  • CAPSMAN provisioning
  • TFTP
  • Web Proxy
  • Hotspot Walled Garden
  • DNS
  • Console with '~' operator