Regex search - Finding exact match

Hi,

Hope someone can help me here, I am trying to do a print in firewall connection for a specific port number, but not getting results I expected.

I tried all the below commands, the first one returns all with 500 in it, i.e. 500, 50018, etc, the last 2 seems to be not “supported” by Mikrotik as the coloring on the characters indicate a problem, and then it returns “ALL” connections

/ip firewall connection print where src-address~":500"
/ip firewall connection print where src-address~":500$"
/ip firewall connection print where src-address~"^:500$"

In Mikrotik scripting, the $ symbol is used to expand a variable, as in
:local srcport 500 ; /ip firewall connection print where src-address~“:$srcport”
To use it as the “end of string” symbol in a regexp, you have to escape it, as in
/ip firewall connection print where src-address~“:500$”