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.
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 或更多 个前面的标记。