example of regular expression

Example 1: regex examples

\d         matches a single character that is a digit -> Try it!\w         matches a word character (alphanumeric character plus underscore) -> Try it!\s         matches a whitespace character (includes tabs and line breaks).          matches any character -> Try it!

Example 2: regex examples

\D         matches a single non-digit character -> Try it!

Example 3: regex examples

<.+?>            matches any character one or more times included inside < and >, expanding as needed -> Try it!