Rules
Every rule from ESLint, Oxlint and Biome. Pick a rule to see its example. Reach is the weekly npm downloads of the presets that enable a rule; trend is its change over the last quarter.
Every rule from ESLint, Oxlint and Biome. Pick a rule to see its example. Reach is the weekly npm downloads of the presets that enable a rule; trend is its change over the last quarter.
/(?:)*/ // same as the empty regex, the '*' accomplishes nothing
/(?:|x)*/ // same as the empty regex, the alternative has no effect
/(?:x|)*/ // same as 'x*', the empty alternative has no effect
/(?:x*|y*)*/ // same as 'x*', the first alternative would always match, y* is never tried
/(?:x?)*/ // same as 'x*'
/(?:x?)+/ // same as 'x*'/x*/Popular · 1 of 50
Repeated patterns in regular expressions should not match the empty string
/(?:)*/ // same as the empty regex, the '*' accomplishes nothing
/(?:|x)*/ // same as the empty regex, the alternative has no effect
/(?:x|)*/ // same as 'x*', the empty alternative has no effect
/(?:x*|y*)*/ // same as 'x*', the first alternative would always match, y* is never tried
/(?:x?)*/ // same as 'x*'
/(?:x?)+/ // same as 'x*'/x*/