Created on 06-16-2008 08:30 AM
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
still I don' t get this line: set pattern " /\\b0FF\\b/"actually there' s an error in my first post (25-11-09) because the ' entries' definition is missing; repost from feb-19 has the correct syntax; Anyway: the issue could be triggered for the difference about how treat webGUI or CLI the regexp syntax. . you want to match 0FF string (a zero plus 2 uppercase F), so you use anchor \b to define boundaries; (to avoid to match C0FFEE for instance) . as \b is special, you need to escape it with another slash, so \\b0FF\\b . As you know, if you use regular expressions, is standard practice use delimiters to catch the pattern, i.e. /pattern/ or |pattern| or m{pattern}; webGUI it' s no strict to manage pattern, so you could keep \\b0FF\\b and within CLI you' ll see set pattern " \\b0FF\\b" If you want your regexp case insensitive, the // are now mandatory and the syntax would be set pattern " /\\b0FF\\b/i" ; but if not, above regexp should works Sorry by the typos and lack of precission in earlier posts. regards
regards
/ Abel
our regexp case insensitive, the // are now mandatory and the syntax would be set pattern " /Thank you sir!
The most expensive and scarce resource for man is time, paradoxically, it' s infinite.
Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com
ORIGINAL: taylork Okay, how do I block everything?try with this regexp: ^.*$
regards
/ Abel
Created on 04-22-2010 09:37 AM
Created on 05-19-2010 06:57 AM
Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1662 | |
1077 | |
752 | |
443 | |
220 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.