Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use regexp for hostgroup matching #2

Open
joegreen88 opened this issue Mar 11, 2015 · 0 comments
Open

Use regexp for hostgroup matching #2

joegreen88 opened this issue Mar 11, 2015 · 0 comments
Assignees

Comments

@joegreen88
Copy link
Member

It would be awesome if we could use regexp instead of simple string matching on hostgroups here: https://github.com/smrtr/HaltoRouter/blob/master/src/Smrtr/HaltoRouter.php#L286

We could use an @ symbol at the beginning of the string to denote a regular expression.

This would allow us to define hostgroups like so:

  • Group[] = "area.mysite.domain" checked normally
  • Group[] = "@/area\.mysite\.([a-zA-Z0-9]+)\.domain/" checked as a regular expression
@joegreen88 joegreen88 self-assigned this Mar 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant