Test, validate and match regular expressions
Matches the position at the very beginning of the string (or the start of any line when the multiline flag is enabled). On its own it matches an empty string at that position, so it is almost always combined with other patterns to force a match to start at the start of input. Common uses include validating that a value begins with a required prefix and performing per-line matching or splitting in multiline mode.