|text to get| Other text.... migh have \"|\"\'s ...
How can I get the text to get stuff from the string (and remove it)?
text to get
It should
you should look up the following functions:
split() substr()
Depending on how you want to solve your task either can be used.