Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

A problem about regular expression #231

Open
dxdragon opened this issue Nov 10, 2015 · 0 comments
Open

A problem about regular expression #231

dxdragon opened this issue Nov 10, 2015 · 0 comments

Comments

@dxdragon
Copy link

sometimes we need block some host like x.example.com, where x represents a single character. so a alternative method is to create rules with user of ruleset, e.g.

rules:
  web -> web:
    -> [A-Za-z].example.com: REJECT
  # Or
  # -> /\w\.example\.com/: REJECT

But the fact is whether '[A-Za-z]' or '\w' matches one more character(s). And then I test another metacharacter \d, it performs as general regex...Maybe that's a bug for policeman.

@dxdragon dxdragon reopened this Nov 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant