📄 examples.html
字号:
<HTML><HEAD><TITLE> Regular Expressions </TITLE></HEAD><BODY><A NAME="Example_Regular_Expressions"></A><H2> Example Regular Expressions </H2><P>The following are regular expression examples which will match:</P><P><UL> <li>An entire line.</li></UL><PRE> ^.*$</PRE></P><P><UL> <li>Blank lines.</li></UL><PRE> ^$</PRE></P><P><UL> <li>Whitespace on a line.</li></UL><PRE> \s+</PRE></P><P><UL> <li>Whitespace across lines.</li></UL><PRE> (?n\s+)</PRE></P><P><UL> <li>Whitespace that spans at least two lines. Note minimal matching `*?' quantifier.</li></UL><PRE> (?n\s*?\n\s*)</PRE></P><P><UL> <li>IP address (not robust).</li></UL><PRE> (?:\d{1,3}(?:\.\d{1,3}){3})</PRE></P><P><UL> <li>Two character US Postal state abbreviations (includes territories).</li></UL><PRE> [ACDF-IK-PR-W][A-Z]</PRE></P><P><UL> <li>Web addresses.</li></UL><PRE> (?:http://)?www\.\S+</PRE></P><P><UL> <li>Case insensitive double words across line breaks.</li></UL><PRE> (?i(?n<(\S+)\s+\1>))</PRE></P><P><UL> <li>Upper case words with possible punctuation.</li></UL><PRE> <[A-Z][^a-z\s]*></PRE></P><P><P><HR></P><P></P><P></P></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -