How can I escape the pipe "|" symbol for console command queries that utilize RegEx string matching?

We’re using a commandlet that filters debug draw elements based on RegEx string matching. But anytime I try to use the pipe “|” symbol (logical “OR” in Regular Expressions), the rest of the string ends up being entered as a separate command. Is there some way to enter a special escape character before the pipe so that it will pass through the console as the literal pipe character instead of a separator for a new command?

Just to be specific, I’m running into this issue using UE5.

Did you try \

Yeah, it doesn’t work. The pipe is still not sent as a literal | character, and anything after it ends up being entered in the console as a separate command.

1 Like