Fixed the dynamic regexp