Build, test, and debug regular expressions
This regular expression is designed to extract a Drupal comment ID (cid) from a URL. It matches either an anchor-based URL format (ending in #comment-) or a path-based format (containing /comment/). The actual numeric ID is captured in the second capturing group, making it useful for parsing web URLs to identify specific comments in a Drupal system.