Path regexp

Implemented the possibility to define a regexp as path. WIP