Basic regex syntax
\d matches one digit, \w one letter, digit or underscore, and \s one whitespace character. The + sign means one or more, * zero or more, ? optional, and {n,m} a specific count. Parentheses ( ) create a capture group, [abc] is a character set, and ^ and $ mark the start and end. Example: \d{4}-\d{2}-\d{2} matches a date such as 2026-10-26.