[abc] A single character: a, b or c
[^abc] Any single character but a, b, or c
[a-z] Any single character in the range a-z
[a-zA-Z] Any single character in the range a-z or A-Z
^ Start of line
$ End of line
\A Start of string
\z End of string
. Any single character
\s Any whitespace character
\S Any non-whitespace character
\d Any digit
\D Any non-digit
\w Any word character (letter, number, underscore)
\W Any non-word character
\b Any word boundary character
(...) Capture everything enclosed
(a|b) a or b
a? Zero or one of a
a* Zero or more of a
a+ One or more of a
a{3} Exactly 3 of a
a{3,} 3 or more of a
a{3,6} Between 3 and 6 of a
分享到:
相关推荐
正则表达式(Regular Expression,简称Regex)是用于匹配字符串的一种强大的...这本2018年的《Regex Quick Syntax Reference》是学习和查阅正则表达式语法的好帮手,无论你是初学者还是经验丰富的开发者,都值得拥有。
这份"Regex Quick Syntax Reference"压缩包包含了一个英文的PDF版本和EPUB版本的速查手册,对于学习和掌握正则表达式非常有帮助。 正则表达式的核心概念包括: 1. **特殊字符**:如`.`代表任意单个字符,`^`表示...
GDB_QUICK_REFERENCE文档提供了一系列GDB的常用命令和简要说明,用以指导用户快速上手GDB的基本操作。 首先,启动GDB调试器的方法通常有两种。一种是直接输入"gdb"命令启动GDB,另一种是使用"gdb program"的方式,...
- 书名:C++ Standard Library Quick Reference - 作者:Peter Van Weert 和 Marc Gregoire - 出版地:比利时的Kessel-Lo和Meldert - 出版信息:书号为ISBN-13(纸质版): 978-1-4842-1875-4,ISBN-13(电子版)...
- Regex库:支持正则表达式的处理,用于字符串模式匹配、搜索、替换等。 - Bind和Lambda库:这些库允许程序员编写高阶函数和函数对象,以及使用lambda表达式。 - Function(观察者)库:提供了函数对象和回调机制...
A great quick reference for perl regular expressions.
A quick reference guide to UltraEdit's default keyboard shortcuts Keymapping and custom hotkeys How to customize 键映射s and menu hotkeys Column Markers The benefit of a column maker is that it can ...
Quick Reference ; ;;;;;;;;;;;;;;;;;;; ; The following are all the settings which are different in either the production ; or development versions of the INIs with respect to PHP's default behavior. ;...