请问正则表达式[0-9_]表示什么意思
WhentheLOCALEandUNICODEflagsarenotspecified,matchesanyalphanumericcharacterandtheunde...
When the LOCALE and UNICODE flags are not specified, matches any alphanumeric character and the underscore; this is equivalent to the set [a-zA-Z0-9_]. With LOCALE, it will match the set [0-9_] plus whatever characters are defined as alphanumeric for the current locale. If UNICODE is set, this will match the characters [0-9_] plus whatever is classified as alphanumeric in the Unicode character properties database.
上文摘自https://docs.python.org/2.7/library/re.html 我知道[0-9]表示0到9中的任何一个,但是'_'表示什么?
求解,谢谢.
上文贴的那段话是对\w的解释 展开
上文摘自https://docs.python.org/2.7/library/re.html 我知道[0-9]表示0到9中的任何一个,但是'_'表示什么?
求解,谢谢.
上文贴的那段话是对\w的解释 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询