Build, test, and debug regular expressions
This PCRE regex matches any text that appears immediately after the prefix "chk-" and right before the next subsequent hyphen "-". It utilizes a positive lookbehind and a positive lookahead to extract the target text without including the bounding delimiters in the match itself. This is particularly useful for parsing structured strings, extracting identifiers, or isolating specific segments from formatted codes or logs.