<regex> <regular expresion> of <something> is not defined

What is the pipe doing in there btw? (edited: disregard, found a good explanation and sharing here for future reference)