x
/([A-Z])\w+/g
/([A-Z])\w+/g
xxxxxxxxxx
RegExr was created by gskinner.com and is proudly hosted by Media Temple.
Edit the Expression & Text to see matches. Roll over matches or the expression for details. PCRE & JavaScript flavors of RegEx are supported. Validate your expression with Tests mode.
The side bar includes a Cheatsheet, full Reference, and Help. You can also Save & Share with the Community and view patterns you create or favorite in My Patterns.
Explore results with the Tools below. Replace & List output custom results. Details lists capture groups. Explain describes your expression in plain English.
通过点击“添加测试”按钮来创建新的测试。点击一个测试来编辑其名字、类型以及文本。
(
捕获分组 #1。 把多个标记分在同一组并创建一个捕获分组,用来创建子串或引用。[
字符集。 匹配集合中的任何字符。A-Z
范围。 匹配ASCII码从"A"到"Z"的字符 (ASCII码从 65 到 90)。 大小写 敏感。]
)
\w
单词。 匹配字母、数字、下划线。+
量词。 匹配 1 或更多 个前面的标记。