Or (A|B)
- 主要語言
- Python
- 星號
- 8
- 分支
- 10
- PR 合併指標
- 30 天內沒有已合併 PR
描述
[`A|B`](https://docs.python.org/3.7/library/re.html#index-13)
**Normal regex**:
```py
from mre import Regex
# Example of how it can work
print(Regex('Test').or(Regex('test')))
# Output: Test|test
# Regex without |: Testtest
```

**Group**:
```py
from mre import Regex, Group
# Example of how it can work
print(Group('Test').or(Regex('test')))
# Output: (Test|test)
# Regex without |: (Testtest)
```

----------
**Attention** to Set behavior:
```py
from mre import Regex, Set
# Example of how it can work
print(Set('Test').or(Regex('test')))
# Output: [Test|test]
# Regex without |: [Testtest]
```

Operator `or` it makes no sense to have the default behavior in this case.
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。