so I have a string such as this:
r\'irrelevant data (~symbol)relevant data(/~symbol) irrelevant data\'
and want to get to the relevant data.