To test the regular expression, you can use an online regex tester tool like regex101.com or regexr.com. Simply enter some sample text that includes phone numbers, paste in the regular expression, and see if the tool highlights the phone numbers that match the pattern.

As for whether it's possible to match every possible phone number format, the answer is no. Phone number formats can vary widely. There can be multiple valid formats. The regular expression I provided is a good starting point for matching most Polish phone numbers, but it may not match all possible formats. If you have a specific set of phone numbers that you need to match, it's always best to test the regular expression against real-world data to ensure it works as expected.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence