Added an extract pattern function. Accepts a string, splits it at "|" and returns the answer without a regex.