📜  python正则表达式转义竖线| - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:23.940000             🧑  作者: Mango

代码示例1
^\|[\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