Test, validate and match regular expressions
This regex extracts a CodePen pen ID from a given URL. It matches URLs starting with http or https, containing "codepen.io", and captures all characters following the "pen/" path segment into a capturing group. This pattern is particularly useful for developers who need to parse CodePen links to embed content or retrieve pen data, though it may capture query strings if present.