案例
Expand a-f as an explicit alphabet
Expand a-f as an explicit alphabet. The input is a small public learning fixture; it contains no private production data.
输入
a-fExpected answer
abcdef- 分隔符
(empty)
Expand 0-9 as an explicit alphabet
Expand 0-9 as an explicit alphabet. The input is a small public learning fixture; it contains no private production data.
输入
0-9Expected answer
0123456789- 分隔符
(empty)
Expand A-F0-9 as an explicit alphabet
Expand A-F0-9 as an explicit alphabet. The input is a small public learning fixture; it contains no private production data.
输入
A-F0-9Expected answer
ABCDEF0123456789- 分隔符
(empty)
Expand a-cx-z as an explicit alphabet
Expand a-cx-z as an explicit alphabet. The input is a small public learning fixture; it contains no private production data.
输入
a-cx-zExpected answer
abcxyz- 分隔符
(empty)
Expand 1-5 as an explicit alphabet
Expand 1-5 as an explicit alphabet. The input is a small public learning fixture; it contains no private production data.
输入
1-5Expected answer
12345- 分隔符
(empty)
参数
| 参数 | 默认值 | 输入与选项 |
|---|---|---|
| 分隔符 | "" | 支持 \n、\r 和 \t 等转义序列 |