Skip to content

Use regexp for hostgroup matching #2

Description

@joegreen88

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions