[Regex Expression] Tagline --- {0, } {1,10}

Posted Answer1215

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[Regex Expression] Tagline --- {0, } {1,10}相关的知识,希望对你有一定的参考价值。

Using a character set repeated 1 or more times, make a pattern to search for strings that do not contain the characters ‘a‘, ‘e‘, ‘i‘, ‘o‘, ‘u‘, and ‘y‘.

/[^aeiouy]+/gi

 

Next, surround our pattern with a word boundary on each side.

/\b[^aeiouy]+\b/gi

技术分享

 

But wait, our pattern is considering strings containing white space to be misspelled words. Add the white space to the characters we wish to not match.

/\b[^aeiouy\s]+\b/gi

技术分享

 

-----------------------------------------

 

技术分享

 

-------------------------------

 

技术分享

 

以上是关于[Regex Expression] Tagline --- {0, } {1,10}的主要内容,如果未能解决你的问题,请参考以下文章

[Regex Expression] Find Sets of Characters

[Regex Expression] Match mutli-line number, number range

regular expression ---正则表达式 --- REGEX 的一些补充

Regular Expression Matching,regex,正则表达式匹配,利用动态规划

在Alteryx中使用Regex Expression 正则表达式

我可以在 Json Regex Extractor 中使用 Json Path Expression 的 JMeter 结果来仅提取部分结果吗?