Regexp语法Python

时间:2015-10-18 19:50:58

标签: python regex

这些正则表达式中的{%d}是什么? 我读过:the re doc但我无法理解它(除了this part之外)。

B = r'( {%d})'

N = r'(\d{%d})'
NB = r'([0-9 ]{%d})'

A = r'(\w{%d})'
AB = r'([a-zA-Z ]{%d})'

AN = r'([a-zA-Z0-9]{%d})'
ANB = r'([a-zA-Z0-9 ]{%d})'

AMT = r'(\d{13}[{}A-R]{1})'

ALL = r'(.{%d})'

0 个答案:

没有答案