Build, test, and debug regular expressions
This regex extracts the value of the 'foo' parameter from URL query strings. It matches either 'foo=...' with the value terminated by '&' or '#', or a bare 'foo' when it is the last parameter or followed by a delimiter. Useful for parsing query parameters in web analytics, logging, or URL processing tasks.