Closed bharrisau closed 1 year ago
Good catch! Any idea when this changed and the suffix was added?
Anyway... I would like to make the match a bit more specific. Are you ok with ceb7b9ce5a38b9efb315ddd48ee14f9e14b5fcfb? This makes sure the match starts at the beginning (^
) and some characters are escaped by a function to make sure they have no special meaning (for example (
, )
which were ok in your code, and .
for any character).
No sorry, first update in like 6 months. That doesn't have the .*
at the end, but I don't know how routeros does the string matching, so if it doesn't require matching the whole string it will be fine.
Regular expressions need to match the start (^
) and end ($
) of a string explicitly. So matching of .*
(any number of any character) is not required at the end unless you match for the end of the string, with something like .*$
.
Merged into main
. Thanks!
Neighbour version can have a date suffix. This changes to match only on the benginning.