php - how to find word position in PHPWord

one text

i just interesting using PHPWord to be my MS word file editor. lets go to the case!.

first i have ms word file named template.docx. below are the data inside the file.

Name : ${name}
Address : ${address}

Now, i want to find this using php, i want to find any "${" word, why?, because it could show what name that could be inserted dynamically, so i could foreach those later on. the problem is, its not that simple, i see OOXML are using something that seperate the wording. Question is, how to solve this problem?.

i already try this code

$phpWord = \PhpOffice\PhpWord\IOFactory::load($source);

but it cannot work with me.

Source