2024-09-30 01:32:28 发布
网友
为了编写一个较短的正则表达式和精确的正则表达式,我想知道使用unicode块的可能性,如here所示。你知道吗
当我尝试将'\p{InBasic_Latin}'与regex内置一起使用时,问题是返回的错误re.error: bad escape \p at position ...
'\p{InBasic_Latin}'
re.error: bad escape \p at position ...
有没有可能在python3.7的regex中使用unicode块?你知道吗
Python3.7不支持Unicode属性。
但是\p{InBasic_Latin}的等价物应该是[\u0000-\u007F]
\p{InBasic_Latin}
[\u0000-\u007F]
Python3.7不支持Unicode属性。
但是
\p{InBasic_Latin}
的等价物应该是[\u0000-\u007F]
相关问题 更多 >
编程相关推荐