Matrix Version: 5.4.1.3
What is the best way to list the data contains uppercase letters only with an option for digits and non word characters?
I am trying to use the following keyword in the asset listing.
%ds__sn^contains:[\\^\[A-Z \s\d\W\]+$]:<li>{ds__sn}</li>: %
Result
- OP’T LAND
- KRANTZCKE
- ELLIS
- Egulian
- BUILD
- Clark
Regex filters are not working as expected. “Egulian” and “Clark” not suppose to appear in the listing. The regex filters are only working on lowercase values and not listing them in the list.
I want to control the listing at Matrix end. Alternatively, I have JS based solution which I am leaving to the last.
I also thought that I can use SSJS to compare the values and print them but SSJS doesn’t work in Asset listing.
Any suggestions?
Thanks in advance