QuiteRSS / quiterss

Free news feeds reader
https://quiterss.org
Other
1k stars 122 forks source link

Regex not matching correctly #1529

Open mpaluta opened 2 years ago

mpaluta commented 2 years ago

I am using the regular expression \[[A-Z]{2}.*\] to filter Titles.

The expected behavior is to match an open bracket, two capital letters, any number of other characters, and a close bracket. It correctly matches a post titled [FL] ... for example. However, a post title of the format [Targeted] ... was also matched, but it should not be as there is only one capital letter.