Regex,以digi结尾和不以digi结尾的过滤器url

2024-05-17 06:22:09 发布

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

我有以下四个网址,其中我想过滤只有两个使用正则表达式。你知道吗

/chassis/motherboard/cpu<;——这个

/chassis/motherboard/cpu/core0

/chassis/motherboard/cpu0<;——这个

/chassis/motherboard/cpu1/core0

我试过玩弄^.*[0-9a-z_].cpu,但没能找到解决办法。你知道吗


Tags: ltcore0cpu网址解决办法motherboardchassiscpu1