Mikrotik Dude – regexp

glitchlist Uncategorized 2 Comments

If you want to play with Regular Expressions in Dude server keep in mind these rules:

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

‘{}’ bounds are not supported;

“()” 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

https://wiki.mikrotik.com/wiki/Manual:Regular_Expressions

Then test REGEX on these websites:

https://www.regexpal.com/

https://regexr.com/

bye

.glitchlist crew

Comments 2

    1. Post
      Author

Leave a Reply

Your email address will not be published. Required fields are marked *