Difference between revisions of "Manual:Regular Expressions"

From MikroTik Wiki
Jump to: navigation, search
(Created page with "RouterOS support POSIX regular expression syntax ([http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html POSIX standard]), with some exceptions: * '{}' boun...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
RouterOS support POSIX regular expression syntax ([http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html POSIX standard]), with some exceptions:
 
RouterOS support POSIX regular expression syntax ([http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html POSIX standard]), with some exceptions:
  
* '{}' bounds are not supported;
 
 
* "()" must not be empty;
 
* "()" must not be empty;
 
* equivalence classes are not supported ("<nowiki>[[.ch.]]</nowiki>");
 
* equivalence classes are not supported ("<nowiki>[[.ch.]]</nowiki>");
Line 16: Line 15:
 
* DNS
 
* DNS
 
* Console with '~' operator
 
* Console with '~' operator
 +
 +
 +
[[Category:Manual]]
 +
[[Category:System]]
 +
[[Category:Case Studies]]

Latest revision as of 11:29, 17 September 2020

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