Test, validate and match regular expressions
This PCRE regex attempts to match Portuguese weekday names (such as "segunda" through "sexta") and their numerical ordinals ("2ª" to "6ª"), often followed by "-feira" (e.g., "segunda-feira"). It relies on multiline mode to match strings starting with the full weekday name. However, due to the use of a character class, it incorrectly matches any combination of the letters in "-feira" rather than the exact literal suffix.