selfteaching / selfteaching/selfteaching-python-camp

【自学内容】 正则表达式中\s\w等代码的功能汇总

Open
#798 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

学习素材分享
Dominant language
Python
Stars
151
Forks
875
PR merge metrics
No merged PRs in 30d

Description

  1. 代码:.
    功能:匹配[ ]中列举的字符
  2. 代码:\d
    功能:匹配数字,即0-9
  3. 代码:\D
    功能:匹配非数字,即不是数字
  4. 代码:\s
    功能:匹配空白,即 空格,tab键3. 代码:
  5. 代码:\S
    功能:匹配非空白
  6. 代码:\w
    功能:匹配非特殊字符,即a-z、A-Z、0-9、_、汉字
  7. 代码:\W
    功能:匹配特殊字符,即非字母、非数字、非汉字

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Issue #798 provides a Chinese-language summary of regular-expression tokens such as ., \d, \s, \w and their complements, but names no file, test, or entry point. First locate where self-study content is maintained; done means adding or correcting this summary there and verifying the descriptions against the project's intended material.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.