will never understand these passive-aggressive replies.
the reason i found this was because i googled it. and the reason i registered it here was in part due to answering myself and helping anyone else that has to google it in the future.
will never understand these useless-obvious replies.
the reason I reply on that way was because your answering is completely uselessly, not for the timing, but for context, and not helping anyone else that has to google it in the future.
If someone on the forum asks for help solving an equation, is there any point in telling them that 1+1 equals 2?
I don't know why in 2014 I didn't notice that he had replied to me.
Ignoring that by now everything is encrypted and it makes very little sense to continue using layer7,
and considering that RouterOS does not support RegEx extended syntax like lookaheads and lookbehinds, but only basic functions,
answer the problem, with some help...
Create a RegEx Layer 7 with these requirements:
Legend:
* zero or more dns valid characters or dot
? exactly one dns valid characters or dot
anything is any combination of dns valid characters and dot (.)
Must match exactly
example.com
Must not match
anythingexample.com or
example.comanything or
anythingexample.comanything
BUT must match all the previous 3 example if the string end with
.example.com
Must match
?.example.com and
??.example.com and
???.example.com
Must match
*?????.example.com
When is exactly
????.example.com must match everything, except when "????" is equal to
sub1 or
sub2