Community discussions

 
User avatar
karo84
Member Candidate
Member Candidate
Topic Author
Posts: 194
Joined: Fri Aug 17, 2007 9:06 am

Problem with Regexp in layer7

Tue Aug 04, 2009 3:57 pm

Hi!
I have written some regexp pattern to match word char in the HTTP URL. But I can not use it In MT layer7 filtering why?
Here the the pattern
(http):\/\/[a-zA-Z0-9_\s\-".:;#[{/~}]+((char)=?)
I have tested it is working one, but It does not work in Mt.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 5942
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Problem with Regexp in layer7

Tue Aug 04, 2009 4:08 pm

it doesn't look like a valid regexp. You start a range with '[', but there are no corresponding ']'
 
User avatar
karo84
Member Candidate
Member Candidate
Topic Author
Posts: 194
Joined: Fri Aug 17, 2007 9:06 am

Re: Problem with Regexp in layer7

Tue Aug 04, 2009 4:28 pm

Could You Tell me How to write the correct form?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 5942
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Problem with Regexp in layer7

Tue Aug 04, 2009 4:36 pm

 
User avatar
karo84
Member Candidate
Member Candidate
Topic Author
Posts: 194
Joined: Fri Aug 17, 2007 9:06 am

Re: Problem with Regexp in layer7

Wed Aug 05, 2009 1:41 pm

Thanks)
 
User avatar
karo84
Member Candidate
Member Candidate
Topic Author
Posts: 194
Joined: Fri Aug 17, 2007 9:06 am

Re: Problem with Regexp in layer7

Wed Aug 05, 2009 2:01 pm

Please Help Me to write regexp in MT to match http for example "char" in the url and then block or allow that requests.
I have tried, but no result. :(
Help Me Please.

Thanks
Regards
Karapet

Who is online

Users browsing this forum: Google [Bot], msatter and 102 guests