makhlo :
As example I have the following sentence: k8s Kubernetes.
Given the following regular expression: [a-zA-Z]+[^\da-zA-Z]
Actual result(match bold characters): k8s Kubernetes.
Expected result(match bold characters): k8s Kubernetes.
kinoute :
You could use the word boundary \b
to delimitate a word and ignore numbers, like:
\b[A-Za-z]+\b
Test: https://regexr.com/51oe7
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=396691&siteId=1