pcre2test is a test program for the PCRE2 regular expression libraries, but it can also be used for experimenting with regular expressions.