pasting commands from wiki = syntax errors

im trying to use some of these wiki layer 7 commands, but pasting them into terminal gives tons of syntax errors and usually the rule is added with just a name and no content.

http://wiki.mikrotik.com/wiki/L7

for example, how can i get that bittorrent rule:

/ip firewall layer7-protocol
add comment=“” name=bittorrent regexp=“^(\x13bittorrent
protocol|azver\x01$
|get /scrape\?info_hash=|get /announce\?info_hash=|get
/client/bitcomet
/|GET /data\?fid=)|d1:ad2:id20:|\x08’7P\)[RP]”

into mikrotik?? you would think the wiki would address this issue (ive even tried click the manual and source code, same result)

this is what i get from the ros 5.20 terminal:

[admin@cust2737] /ip firewall layer7-protocol> add comment=“” name=bittorrent rege
xp=“^(\x13bittorrent
[admin@cust2737] /ip firewall layer7-protocol> protocol|azver\x01$
syntax error (line 1 column 9)
[admin@cust2737] /ip firewall layer7-protocol> |get /scrape\?info_hash=|get
/announce\?info_hash=|get
expected command name (line 1 column 5)
[admin@cust2737] /ip firewall layer7-protocol> /client/bitcomet
syntax error (line 1 column :sunglasses:
[admin@cust2737] /ip firewall layer7-protocol> /|GET /data\?fid=)|d1:ad2:id2
0:|\x08’7P\)[RP]”
expected command name (line 1 column 6)
[admin@cust2737] /ip firewall layer7-protocol>

In winbox, in terminal window, hit Ctrl+v then press enter.
Should see your prompt change from >> at the end to single >

Try your paste again.

BTW, Ctrl+v turns of the auto complete feature. That’s what causing the errors.

Hth.

Sent in semaphore with flags and glowsticks. Oh, and Tapa 2…

It looks more like a line-continuation problem to me. The second and third lines (“add comment…” and “protocol…” are supposed to be on the same line, not broken in the middle. You may need to paste these lines into a text editor and remove the extra linefeeds, so that every line ends with the backslash '' character; e.g.:

/ip firewall layer7-protocol
add comment="" name=bittorrent regexp="^(\\x13bittorrent protocol|azver\\x01\$\
|get /scrape\\\?info_hash=|get /announce\\\?info_hash=|get /client/bitcomet\
/|GET /data\\\?fid=)|d1:ad2:id20:|\\x08'7P\\)[RP]"