regex-cheatsheet
regex-cheatsheet copied to clipboard
Mikrotik
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