fix regex for getting layer name