How to use lookahead to exclude special characters in a regular expression

后端 未结 0 1115
旧巷少年郎
旧巷少年郎 2021-02-03 22:33

I have a regular expression that I\'m using to try to detect screen resolution as follows

xrandr | grep -P \'(.*\\d+x\\d+)* | awk {\'print$3\'}

w

相关标签:
回答
  • 消灭零回复
提交回复
热议问题