regex-cheatsheet icon indicating copy to clipboard operation
regex-cheatsheet copied to clipboard

Mikrotik

Open h8nor opened this issue 4 years ago • 0 comments

For regular expressions Mikrotik uses a slightly modified ERE scheme

This note should make it easier to use regexp in Mikrotik

  • Special characters \$ \? require Backslash
  • Space can be denoted by \_ and Double Quotes \"
  • Special characters \\^ \\. \\{ \\[ \\( \\) \\| \\* \\+ \\? is required specifying Double Slashes
  • The Separator as Tab may be skiped, as scripts service characters $ (Var) \ (Hex)
  • Supports Capturing group*
  • Not Supports Backreferences* and Non-capturing* "Atomic" groups
  • Not Supports \w [[:word:]]** and \b accordingly

There is no information in Wiki (rarely updated): https://wiki.mikrotik.com/wiki/Manual:Regular_Expressions

Correct ex. determination type of Date from log: https://regex101.com/r/5lpRGc/2

h8nor avatar Dec 12 '20 18:12 h8nor