(?<!\S)\S+(?!\S), .
, , [a-z-] :
String text = "--xx128736f-afasdf2137asdf-12387-kjs-23xx--";
Pattern p = Pattern.compile(
"(?<!alpha)alpha+(?!alpha)".replace("alpha", "[a-z-]")
);
Matcher m = p.matcher(text);
while (m.find()) {
System.out.println(m.group());
}
:
--xx
f-afasdf
asdf-
-kjs-
xx--
?
, Unicode .. (, )