相关疑难解决方法(0)

检查字符串是否匹配模式

如何检查字符串是否与此模式匹配?

大写字母,数字,大写字母,数字......

示例,这些将​​匹配:

A1B2
B10L1
C1N200J1
Run Code Online (Sandbox Code Playgroud)

这些不会('^'指向问题)

a1B2
^
A10B
   ^
AB400
^
Run Code Online (Sandbox Code Playgroud)

python regex string-matching

270
推荐指数
8
解决办法
46万
查看次数

标签 统计

python ×1

regex ×1

string-matching ×1