Test, validate and match regular expressions
This regex searches for a 1 to 3 digit number enclosed in quotes followed by a closing curly brace and semicolon (e.g., "123";}). It scans up to 40 characters of preceding text to locate this pattern, making it useful for extracting course numbers or identifiers from serialized objects, JSON snippets, or database export strings.