Test, validate and match regular expressions
Matches file paths starting with a forward slash or backslash, followed by any characters except commas or colons, and ending with a period plus word characters (a file extension). Useful for extracting Unix or Windows file paths with extensions from text while avoiding URLs (colons) and comma-separated values. The global and multiline flags allow finding all matches across multiple lines.