`re` should support `\p{...}` character properties
Open
Nobody has claimed this yet.
stdlib
topic-regex
type-feature
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 36k
- PR merge metrics
- PR metrics pending
Description
Feature or enhancement
Reproduced steps
re.compile('\p{script=Han}') #
actual:
will throw error
expect:
pass
Info:
- p stand for properity , Han stand for mandarin
- what is p? http://unicode.org/reports/tr18/#Categories
changed log
8/3 add more info . Final thx @JelleZijlstra give an helpful link
Linked PRs
- gh-151969
- gh-152245
- gh-153023
- gh-156490
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with re.compile('\p{script=Han}') and read the Unicode Technical Report 18 link in the description. Done means Python's re supports this property syntax and the expression behaves as expected for Han-script characters; several linked PRs indicate that related work has already moved elsewhere.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 20/100