I want to use regex in ng-repeat. I have tried the following code but its not working.
<
Regular expressions are indeed powerful and can handle all kinds of matches including an exact match like ^c5$
.
However, the body of this question reveals that the issue would be addressed by always filtering by exact matches.
You can specify that the Angular filter should use the exact match comparator by setting the 3rd argument to true
:
filter:{type:'c5'}:true