Apply a regex with flags to an input text and list every match found.
Enter a regex pattern with flags and input text to check whether it matches.