---
# System prepended metadata

title: 密碼限制

---

# 密碼限制

- [react-native TextInput只能输入纯数字](https://blog.csdn.net/qq_32114025/article/details/88948233)

### 密碼 6-14位 含大寫英文

正則式: `^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]6,14}$`