Bit*_*ise 1 elixir
如果给出这个字符串'Cool1, let's g3et to work',我怎么能返回这个值Cool, let's get to work?与Elixir?
'Cool1, let's g3et to work'
Cool, let's get to work
到目前为止,我一直试图用Regex来解决这个问题.谢谢!
duk*_*ave 6
用途String.replace:
String.replace
String.replace("Cool1, let's g3et to work", ~r/\d/, "")
该\d装置的任何数字(又名数字值).
\d
归档时间:
7 年,6 月 前
查看次数:
308 次
最近记录:
6 年,5 月 前