更新时间:2023-02-26 13:09:10
你想要的正则表达式是 [a-zA-Z]
,但你需要使用 find()
方法。
The regular expression you want is [a-zA-Z]
, but you need to use the find()
method.
此页面允许您针对输入测试正则表达式。
This page will let you test regular expressions against input.
在这里有一个Java正则表达式教程。
and here you have a Java Regular Expressions tutorial.