python regular expression escape vertical bar | code example
Example: python regular expression escape vertical bar
|^\|[\d|]*
# ^\| matches literal | at start, as | is a Regex token we need to escape it
# [\d|]* matches any number of digits or |, | inside [] is treated literally