RegExr was created by gskinner.com.
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 MyPatterns.
Explore results with the Tools below. Replace & List output custom results. Details lists capture groups. Explain describes your expression in plain English.
Explanation
(Capturing group. Groups multiple tokens together and creates a capture group for extracting a substring or using a backreference.
[Character set. Match any character in the set.
A-ZRangeMatches a character in the range "A" to "Z" (char code 65 to 90).
]
)
\wWord.Matches any word character (alphanumeric & underscore).
+QuantifierMatch 1 or more of the preceding token.
FlagsIs an optional parameter to a regex that modifies its behavior of searching.
gGlobal.All matches (don't return after first match)