Test, validate and match regular expressions
Matches any text enclosed in square brackets, commonly the timestamp prefix in PHP log entries like [2024-01-15 10:30:45]. The g flag finds all bracketed segments throughout the input, while m processes each line separately. Useful for extracting, highlighting, or stripping bracketed timestamps and labels from log files.