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.
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.