可以通过以下步骤实现:
以下是一个示例代码:
import re
str = "This is a sample string with words containing specific characters."
pattern = r'\b[a-zA-Z]+\b'
matched_words = re.findall(pattern, str)
print(matched_words)
输出结果为:
['This', 'is', 'a', 'sample', 'string', 'with', 'words', 'containing', 'specific', 'characters']
对于这个问题,腾讯云提供了多个相关产品和服务,例如:
请注意,以上只是示例,实际上云计算领域和相关产品非常广泛,具体的应用场景和推荐产品会根据实际需求和具体情况而有所不同。
领取专属 10元无门槛券
手把手带您无忧上云