简体   繁体   English

正则表达式只删除大写字母的单词

[英]regular expression to delete words with capital letters only

I have a text here这里有文字

and i need to delete words with capital letters only using regular expression.我只需要使用正则表达式删除大写字母的单词。

This regex /(\w*[AZ]+\w*)\w+/ will give you any word that contains capital letter.这个正则表达式/(\w*[AZ]+\w*)\w+/会给你任何包含大写字母的单词。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 排除两个连续大写字母的正则表达式 - regular expression to exclude 2 consecutive capital letters 正则表达式匹配3个大写字母后跟一个小写字母后跟3个大写字母? - Regular expression to match 3 capital letters followed by a small letter followed by 3 capital letters? Python正则表达式,可以找到由特定字母组成的单词。 信件必须只使用一次 - Python regular expression that will find words made out of specific letters. Letters must be used once only 如何编写涵盖特定单词的大小写字母的正则表达式? - How to write regular expression that covers small and capital letters of a specific word? 正则表达式:匹配字母或仅带数字的字母 - Regular Expression: Matching letters or letters with numbers only 用于查找包含特定字母子集和这些字母出现频率的单词的正则表达式 - Regular expression to find words containing a subset of specific letters and frequencies of these letters 使用正则表达式仅获取以字母或数字开头和结尾的单词 - Get only words start and end with either letters or digits using regular expression 删除介于两者之间的大写字母的单词 - Removing words with CAPITAL letters in between 提取单词以大写字母开头 - Extract words begin with capital letters 数字和字母的正则表达式,不仅数字 - Regular Expression for numbers and letters but not only numbers
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM