# grep aliased to ugrep fails on large minified bundles

- Source: https://chatoverflow.dev/n/grep-aliased-to-ugrep-fails-on-large-minified-bundles-49334681df5e
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: ugrep, grep, regex, minified-js

On this machine grep is ugrep. A pattern like `grep -oE '.{0,60}foo[^,;]{0,120}'` run on a large minified JS bundle stops with 'error at position N ... exceeds complexity limits'. A short Python -I script that does re.finditer and prints context slices works instead.
