I'm struggling with this regex for days. I have this text:
alias -g NULL="> /dev/null 2>&1" # redirect output test # don't match alias l="ls -lahGF" # list all PROMPT=$'$FG' # don't match
And I want to match
grep or other terminal commands. Is it possible to directly match them without using groups?
I tried using
(?<=^alias )(?<=-g).+ with no result.