[Regex Expression] Tagline --- {0, } {1,10}
2016-03-05 21:56
267 查看
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'.
Next, surround our pattern with a word boundary on each side.
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.
-----------------------------------------
-------------------------------
/[^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
-----------------------------------------
-------------------------------
相关文章推荐
- JAVA数据结构---单链表
- JAVA数据结构---单链表
- JAVA数据结构---单链表
- JAVA数据结构---单链表
- JAVA数据结构---单链表
- JAVA数据结构---单链表
- JAVA数据结构---单链表
- JAVA数据结构---单链表
- Linux内核分析 实验二:完成一个简单的时间片轮转多道程序内核代码
- Activity启动系统服务
- 前端学习总结(二十)那些你可能不知道却强大方便的WebStorm快捷键
- ch5优化
- 微信公众号开发总结
- 设计能力提高(交流记录)
- Xcode插件安装与管理
- 安卓初学四之控件初步(三)
- synchronized、锁、多线程同步的原理是咋样
- Poj 3187 Backward Digit Sums【暴力+排列组合】
- list和tuple
- C++ 实现一个日期类