如何组合多个python regex参数?

2024-05-14 08:36:03 发布

您现在位置:Python中文网/ 问答频道 /正文

我需要从列表中筛选出以下内容:

^[^\w ]$

'^\n( )*$' (\n at the beginning followed by spaces)

'^\n( )*\n$' (\n at both ends with spaces)

'^[]$' (space alone)

如何将它们组合成一个表达式?你知道吗


Tags: the列表by表达式withspaceatspaces

热门问题