Test, validate and match regular expressions
This regex matches sequences of ASCII control characters and whitespace (bytes 0x00 to 0x20) at the beginning or end of a string. It is commonly used to trim leading/trailing whitespace, including tabs, newlines, and other control characters, in PCRE-compatible engines. Useful for data cleaning, input sanitization, and formatting checks.