Prove that for every regular language $L$, the following language is regular:
$L_{pf}=$ $\{x \in L | $ no proper prefix of $x$ is in $L\}$
How should I prove this?
I understood that $L_{pf}$ is just subset of $L$ and the words inside it are special such that no word is the prefix of other one, is this right ? it's not hard if I have the words in $L$ to prove this, but how to generalise it ?