by Ricardo “Rudxain” Fernández Serrata
Version 1 (April 22, 2022)
Download (243 downloads)
Get index of a string (in an array) that matches a regex.
Tip: don't call those expressions repeatedly, it's inefficient because `matches` has a minimum time complexity of O(n) and a max of O(2^n), while `indexOf` has min O(1) and max O(n)
LICENSE: https://unlicense.org/
5 stars | 4 | |
4 stars | 2 | |
3 stars | 0 | |
2 stars | 0 | |
1 star | 0 | |
Reports | 0 |
Rate and review within the app in the Community section.