当然,你只需要更换的模式(即[az])([AZ])以$ 1 $ 2(其中$ 1是小写字母和$ 2是大写字母).这是一个例子:
select * where {
values ?string { "AllDrugs" "FourScoreAndSevenYearsAgo" }
bind(replace(?string, "([a-z])([A-Z])", "$1 $2") as ?splitString)
}
Run Code Online (Sandbox Code Playgroud)
------------------------------------------------------------------
| string | splitString |
==================================================================
| "AllDrugs" | "All Drugs" |
| "FourScoreAndSevenYearsAgo" | "Four Score And Seven Years Ago" |
------------------------------------------------------------------
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
330 次 |
| 最近记录: |