I am trying to give grep a regex pattern for screen resolution(e.g. 1280x720) as following
[0-9]{3,}x[0-9]{3,}
but it doesn’t seem to be working.
The following works but that doesn’t translate to the above one.
[0-9][0-9][0-9][0-9]*x[0-9][0-9][0-9][0-9]*
Your regex seems fine for bash :
If you want to use
grep: