changing node definition to regex