|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
string = '|text to get| Other text.... migh have "|"\'s ...'; string = string.replace(/^\|[^|]*\|/, '');