I tried both ^[Ww]argames?$ and [Ww]argames? , it should have matched :
Wargames , wargames , Wargame , wargame , but it matched none of these
Note: The filter itself worked without regexes

Comments

cwgordon7’s picture

Status: Active » Postponed (maintainer needs more info)

Um, I tested both of those, both of which worked. Two questions:

1) Were you pairing this with another filter (such as linebreak filter, etc.)?

2) How did you determine that this was not working? What components did you try to fire that did not fire (that could be the problem).

kourge’s picture

I *think* this has something to do with the question mark. The intention was to match "s" once or zero times, but since the question mark character sometimes has something to do with greedy matching, I'd suggest changing it to {0,1}.

cwgordon7’s picture

Version: 6.x-1.0-beta2 » 6.x-1.1-rc1
Component: Code - Components » Other
Category: bug » support
Status: Postponed (maintainer needs more info) » Fixed

This has been tested, it is not a problem. Check your testing environment, and be sure to clear your cache.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.