http://www.perlmonks.org?node_id=513046


in reply to Re^4: Escaping quotemeta() in regex
in thread Escaping quotemeta() in regex

My first post in this thread pointed out there is NO inherent distinction. Any distinction would have to be imposed by you, the designer. Any distinction we come up with would be arbitrary and thus have limitations, so we can't answer your question.

We really can't help you until you explain what \dth\d\file.txt should become.

We can show you how if you tell us what you want, but you haven't given us nearly enough information.